@@ -10,58 +10,54 @@ Installation
10
10
This is a fully-functional Symfony project. If you want to get it running,
11
11
you have two alternatives:
12
12
13
- ### 1) Use the Symfony Installer
13
+ ### A) Using the Symfony Installer
14
14
15
15
First, install the [ Symfony Installer] ( https://github.com/symfony/symfony-installer ) .
16
16
Then, download and install the Symfony Demo Application executing this command
17
17
anywhere in your system:
18
18
19
19
``` bash
20
- # NOTE: this command doesn't work yet. It will be added to the installer soon.
21
20
$ symfony demo
21
+
22
+ # if you're using Windows:
23
+ $ php symfony demo
22
24
```
23
25
24
- ### 2) Clone the Repository
26
+ ### B) Using Git
25
27
26
28
Alternatively, you can clone this repository using Git. Open up a terminal and
27
29
execute the following command:
28
30
29
- ```
31
+ ``` bash
30
32
$ git clone https://github.com/symfony/symfony-demo
31
33
````
32
34
33
- Next, move into the project and use Composer to download the application
34
- dependencies:
35
+ Next, [install Composer](http://symfony.com/doc/current/cookbook/composer.html)
36
+ (if you haven' t done this already), move into the project and use Composer to
37
+ download the application dependencies:
35
38
36
- ```
39
+ ```bash
37
40
$ cd symfony-demo/
38
41
$ composer install
39
42
```
40
43
41
- Make sure you [install Composer](http://getcomposer.org/download/) before
42
- running this.
43
-
44
44
Usage
45
45
-----
46
46
47
47
If you have PHP 5.4 or higher, there is no need to configure a virtual host
48
48
in your web server to access the application. Just use the built-in web server:
49
49
50
- ```
50
+ ```bash
51
51
$ cd symfony-demo/
52
52
$ php app/console server:run
53
53
```
54
54
55
- This will start a web server that's accessible at http://localhost:8000.
56
- It will just sit and wait forever, so don't expect it to finish . You can
57
- quit it later when you want by pressing `ctrl + c` .
55
+ This command will start a web server for the Symfony application. Now you can access
56
+ the application in your browser at <http://localhost:8000> . You can stop the built-in
57
+ web server by pressing `Ctrl + C` while you ' re in the terminal .
58
58
59
59
> ** NOTE**
60
60
>
61
61
> If you' re using PHP 5.3, configure your web server to point at the `web/`
62
62
> directory of the project. For more details, see:
63
63
> http://symfony.com/doc/current/cookbook/configuration/web_server_configuration.html
64
-
65
- You're all done! Now just load up the application in your browser:
66
-
67
- http://localhost:8000
0 commit comments