@@ -20,15 +20,21 @@ Symfony provides a dedicated application called the **Symfony Installer** to eas
20
20
the creation of Symfony applications. This installer is a PHP 5.4 compatible
21
21
executable that needs to be installed on your system only once:
22
22
23
+ **Linux and macOS systems **:
24
+
25
+ .. class :: command-linux
23
26
.. code-block :: terminal
24
27
25
- # Linux and macOS systems
26
28
$ sudo mkdir -p /usr/local/bin
27
29
$ sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony
28
30
$ sudo chmod a+x /usr/local/bin/symfony
29
31
30
- # Windows systems
31
- c:\> php -r "file_put_contents('symfony', file_get_contents('https://symfony.com/installer'));"
32
+ **Windows systems **:
33
+
34
+ .. class :: command-windows
35
+ .. code-block :: terminal
36
+
37
+ > php -r "file_put_contents('symfony', file_get_contents('https://symfony.com/installer'));"
32
38
33
39
.. note ::
34
40
@@ -37,21 +43,22 @@ executable that needs to be installed on your system only once:
37
43
environment variable and create a ``symfony.bat `` file to create the global
38
44
command or move it to any other directory convenient for you:
39
45
46
+ .. class :: command-windows
40
47
.. code-block :: terminal
41
48
42
49
# for example, if WAMP is used ...
43
- c:\ > move symfony c:\wamp\bin\php
50
+ > move symfony c:\wamp\bin\php
44
51
# create symfony.bat in the same folder
45
- c:\ > cd c:\wamp\bin\php
46
- c:\ > (echo @ECHO OFF & echo php "%~dp0symfony" %*) > symfony.bat
52
+ > cd c:\wamp\bin\php
53
+ > (echo @ECHO OFF & echo php "%~dp0symfony" %*) > symfony.bat
47
54
# ... then, execute the command as:
48
- c:\ > symfony
55
+ > symfony
49
56
50
57
# moving it to your projects folder ...
51
- c:\ > move symfony c:\projects
58
+ > move symfony c:\projects
52
59
# ... then, execute the command as
53
- c:\ > cd projects
54
- c:\projects\ > php symfony
60
+ > cd projects
61
+ > php symfony
55
62
56
63
.. _installation-creating-the-app :
57
64
0 commit comments