You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-10Lines changed: 22 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -16,14 +16,17 @@ Requirements
16
16
Installation
17
17
------------
18
18
19
-
[Download Symfony][4] to install the `symfony` binary on your computer and run
20
-
this command:
19
+
There are 3 different ways of installing this project depending on your needs:
20
+
21
+
**Option 1.**[Download Symfony CLI][4] and use the `symfony` binary installed
22
+
on your computer to run this command:
21
23
22
24
```bash
23
25
$ symfony new --demo my_project
24
26
```
25
27
26
-
Alternatively, you can use Composer:
28
+
**Option 2.**[Download Composer][6] and use the `composer` binary installed
29
+
on your computer to run these commands:
27
30
28
31
```bash
29
32
# you can create a new project based on the Symfony Demo project...
@@ -35,8 +38,8 @@ $ cd my_project/
35
38
$ composer install
36
39
```
37
40
38
-
If you want to test the demo without installing anything locally, you can also
39
-
deploy it on Platform.sh, the official Symfony PaaS:
41
+
**Option 3.** Click the following button to deploy this project on Platform.sh,
42
+
the official Symfony PaaS, so you can try it without installing anything locally:
40
43
41
44
<palign="center">
42
45
<ahref="https://console.platform.sh/projects/create-project?template=https://raw.githubusercontent.com/symfonycorp/platformsh-symfony-template-metadata/main/template-metadata-demo.yaml&utm_content=symfonycorp&utm_source=github&utm_medium=button&utm_campaign=deploy_on_platform"><imgsrc="https://platform.sh/images/deploy/lg-blue.svg"alt="Deploy on Platform.sh"width="180px" /></a>
@@ -45,8 +48,10 @@ deploy it on Platform.sh, the official Symfony PaaS:
45
48
Usage
46
49
-----
47
50
48
-
There's no need to configure anything to run the application. If you have
49
-
[installed Symfony][4] binary, run this command:
51
+
There's no need to configure anything before running the application. There are
52
+
2 different ways of running this application depending on your needs:
53
+
54
+
**Option 1.**[Download Symfony CLI][4] and run this command:
50
55
51
56
```bash
52
57
$ cd my_project/
@@ -55,9 +60,15 @@ $ symfony serve
55
60
56
61
Then access the application in your browser at the given URL (<https://localhost:8000> by default).
57
62
58
-
If you don't have the Symfony binary installed, run `php -S localhost:8000 -t public/`
59
-
to use the built-in PHP web server or [configure a web server][3] like Nginx or
60
-
Apache to run the application.
63
+
**Option 2.** Use a web server like Nginx or Apache to run the application
64
+
(read the documentation about [configuring a web server for Symfony][3]).
65
+
66
+
On your local machine, you can run this command to use the built-in PHP web server:
0 commit comments