File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -14,22 +14,31 @@ Requirements
14
14
Installation
15
15
------------
16
16
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
+
17
25
``` bash
18
- $ composer create-project symfony/symfony-demo
26
+ $ composer create-project symfony/symfony-demo my_project
19
27
```
20
28
21
29
Usage
22
30
-----
23
31
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 > :
27
35
28
36
``` bash
29
- $ cd symfony-demo /
30
- $ php bin/console server:run
37
+ $ cd my_project /
38
+ $ symfony serve
31
39
```
32
40
41
+ If you don't have the Symfony client installed, run ` php bin/console server:run ` .
33
42
Alternatively, you can [ configure a web server] [ 3 ] like Nginx or Apache to run
34
43
the application.
35
44
@@ -39,10 +48,11 @@ Tests
39
48
Execute this command to run tests:
40
49
41
50
``` bash
42
- $ cd symfony-demo /
51
+ $ cd my_project /
43
52
$ ./bin/phpunit
44
53
```
45
54
46
55
[ 1 ] : https://symfony.com/doc/current/best_practices/index.html
47
56
[ 2 ] : https://symfony.com/doc/current/reference/requirements.html
48
57
[ 3 ] : https://symfony.com/doc/current/cookbook/configuration/web_server_configuration.html
58
+ [ 4 ] : https://symfony.com/download
You can’t perform that action at this time.
0 commit comments