@@ -10,9 +10,9 @@ Installing & Setting up the Symfony Framework
10
10
Do you prefer video tutorials? Check out the `Stellar Development with Symfony `_
11
11
screencast series.
12
12
13
- To create your new Symfony application, first make sure you're using PHP 7.1 or higher
14
- and have `Composer `_ installed. If you don't, start by :doc: ` installing Composer globally < /setup/composer >`
15
- on your system. If you want to use a virtual machine (VM), check out :doc: `Homestead </setup/homestead >` .
13
+ To create your new Symfony application, first make sure you're using PHP 7.1 or
14
+ higher and have `Composer `_ installed. If you don't, start by
15
+ :doc: `installing Composer globally </setup/composer >` on your system .
16
16
17
17
Create your new project by running:
18
18
@@ -34,23 +34,24 @@ In other words, your new app is ready!
34
34
35
35
$ composer create-project symfony/skeleton my-project
36
36
37
- # optional: install the web server bundle (explained next)
38
- $ cd my-project
39
- $ composer require --dev symfony/web-server-bundle
40
-
41
37
Running your Symfony Application
42
38
--------------------------------
43
39
44
40
On production, you should use a web server like Nginx or Apache
45
41
(see :doc: `configuring a web server to run Symfony </setup/web_server_configuration >`).
46
- But for development, it's convenient to use the :doc: `Symfony PHP web server <setup/built_in_web_server >`.
42
+ But for development, it's convenient to use the :doc: `Symfony Local Web Server <setup/symfony_server >`.
43
+
44
+ .. note ::
45
+
46
+ If you want to use a virtual machine (VM) with Vagrant, check out
47
+ :doc: `Homestead </setup/homestead >`.
47
48
48
49
Move into your new project and start the server:
49
50
50
51
.. code-block :: terminal
51
52
52
53
$ cd my-project
53
- $ php bin/console server:run
54
+ $ symfony server:start
54
55
55
56
Open your browser and navigate to ``http://localhost:8000/ ``. If everything is working,
56
57
you'll see a welcome page. Later, when you are finished working, stop the server
0 commit comments