Skip to content

Commit 9910499

Browse files
committed
minor #918 Updated the installation and usage instructions (javiereguiluz)
This PR was squashed before being merged into the master branch (closes #918). Discussion ---------- Updated the installation and usage instructions Commits ------- 75e79c6 Updated the installation and usage instructions
2 parents cc35898 + 75e79c6 commit 9910499

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,31 @@ Requirements
1414
Installation
1515
------------
1616

17+
Install the [Symfony client][4] binary and run this command:
18+
19+
```bash
20+
$ symfony new --demo my_project
21+
```
22+
23+
Alternatively, you can use Composer:
24+
1725
```bash
18-
$ composer create-project symfony/symfony-demo
26+
$ composer create-project symfony/symfony-demo my_project
1927
```
2028

2129
Usage
2230
-----
2331

24-
There's no need to configure anything to run the application. Just execute this
25-
command to run the built-in web server and access the application in your
26-
browser at <http://localhost:8000>:
32+
There's no need to configure anything to run the application. If you have
33+
installed the [Symfony client][4] binary, run this command to run the built-in
34+
web server and access the application in your browser at <http://localhost:8000>:
2735

2836
```bash
29-
$ cd symfony-demo/
30-
$ php bin/console server:run
37+
$ cd my_project/
38+
$ symfony serve
3139
```
3240

41+
If you don't have the Symfony client installed, run `php bin/console server:run`.
3342
Alternatively, you can [configure a web server][3] like Nginx or Apache to run
3443
the application.
3544

@@ -39,10 +48,11 @@ Tests
3948
Execute this command to run tests:
4049

4150
```bash
42-
$ cd symfony-demo/
51+
$ cd my_project/
4352
$ ./bin/phpunit
4453
```
4554

4655
[1]: https://symfony.com/doc/current/best_practices/index.html
4756
[2]: https://symfony.com/doc/current/reference/requirements.html
4857
[3]: https://symfony.com/doc/current/cookbook/configuration/web_server_configuration.html
58+
[4]: https://symfony.com/download

0 commit comments

Comments
 (0)