@@ -17,25 +17,8 @@ Downloading Symfony2
17
17
--------------------
18
18
19
19
First, check that you have installed and configured a Web server (such as
20
- Apache) with PHP 5.3.3 or higher.
21
-
22
- .. tip ::
23
-
24
- If you have PHP 5.4, you could use the built-in web server. The built-in
25
- server should be used only for development purpose, but it can help you
26
- to start your project quickly and easily.
27
-
28
- Just use this command to launch the server:
29
-
30
- .. code-block :: bash
31
-
32
- php -S localhost:80 -t /path/to/www
33
-
34
- where "/path/to/www" is the path to some directory on your machine that
35
- you'll extract Symfony into so that the eventual URL to your application
36
- is "http://localhost/Symfony/app_dev.php". You can also extract Symfony
37
- first and then start the web server in the Symfony "web" directory. If
38
- you do this, the URL to your application will be "http://localhost/app_dev.php".
20
+ Apache) with the most recent PHP version possible (PHP 5.3.8 or newer is
21
+ recommended).
39
22
40
23
Ready? Start by downloading the "`Symfony2 Standard Edition `_", a Symfony
41
24
:term: `distribution ` that is preconfigured for the most common use cases and
@@ -71,23 +54,27 @@ have a ``Symfony/`` directory that looks like this:
71
54
72
55
.. note ::
73
56
74
- If you downloaded the Standard Edition * without vendors *, simply run the
75
- following command to download all of the vendor libraries :
57
+ If you are familiar with Composer, you can run the following command
58
+ instead of downloading the archive :
76
59
77
60
.. code-block :: bash
78
61
79
- curl -s http://getcomposer.org/installer | php
62
+ composer.phar create-project symfony/framework-standard-edition path/to/install
80
63
81
- php composer.phar install
64
+ .. tip ::
82
65
83
- If you don't have ``curl `` installed, you can also just download the ``installer ``
84
- file manually at http://getcomposer.org/installer. Place this file into your
85
- project and then run:
66
+ If you have PHP 5.4, you can use the built-in web server:
86
67
87
68
.. code-block :: bash
88
69
89
- php installer
90
- php composer.phar install
70
+ # check your PHP CLI configuration
71
+ php ./app/check.php
72
+
73
+ # run the built-in web server
74
+ php ./app/console server:run
75
+
76
+ The built-in server should be used only for development purpose, but it
77
+ can help you to start your project quickly and easily.
91
78
92
79
Checking the Configuration
93
80
--------------------------
0 commit comments