Skip to content

Commit 4904d36

Browse files
committed
Simplified some Symfony installation instructions
1 parent 236c26f commit 4904d36

File tree

3 files changed

+13
-44
lines changed

3 files changed

+13
-44
lines changed

best_practices/creating-the-project.rst

+4-27
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,12 @@ In the past, Symfony projects were created with `Composer`_, the dependency mana
88
for PHP applications. However, the current recommendation is to use the **Symfony
99
Installer**, which has to be installed before creating your first project.
1010

11-
Linux and Mac OS X Systems
12-
~~~~~~~~~~~~~~~~~~~~~~~~~~
13-
14-
Open your command console and execute the following:
15-
16-
.. code-block:: bash
17-
18-
$ curl -LsS http://symfony.com/installer > symfony.phar
19-
$ sudo mv symfony.phar /usr/local/bin/symfony
20-
$ chmod a+x /usr/local/bin/symfony
21-
22-
Now you can execute the Symfony Installer as a global system command called
23-
``symfony``.
24-
25-
Windows Systems
26-
~~~~~~~~~~~~~~~
27-
28-
Open your command console and execute the following:
29-
30-
.. code-block:: bash
31-
32-
c:\> php -r "readfile('http://symfony.com/installer');" > symfony.phar
33-
34-
Then, move the downloaded ``symfony.phar`` file to your projects directory and
35-
execute it as follows:
11+
.. best-practice::
3612

37-
.. code-block:: bash
13+
Use the Symfony Installer to create new Symfony-based projects.
3814

39-
c:\> php symfony.phar
15+
Read the :doc:`installation chapter </book/installation>`_ of the Symfony Book to
16+
learn how to install and use the Symfony Installer.
4017

4118
Creating the Blog Application
4219
-----------------------------

book/installation.rst

+9-6
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,22 @@ to meet those requirements.
8484
distributing them. If you want to verify the integrity of any Symfony
8585
version, follow the steps `explained in this post`_.
8686

87-
Basing your Project on a Specific Symfony Version
88-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87+
Basing your Project on a Specific Symfony Branch
88+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8989

90-
If your project needs to be based on a specific Symfony version, pass the version
91-
number as the second argument of the ``new`` command:
90+
If your project needs to be based on a specific Symfony branch, add the branch
91+
version number as the second argument of the ``new`` command:
9292

9393
.. code-block:: bash
9494
9595
# Linux, Mac OS X
96-
$ symfony new my_project_name 2.3.23
96+
$ symfony new my_project_name 2.3
9797
9898
# Windows
99-
c:\projects\> php symfony.phar new my_project_name 2.3.23
99+
c:\projects\> php symfony.phar new my_project_name 2.3
100+
101+
In case you need it, you can even indicate the exact Symfony version number you
102+
want your project to be based on (e.g. ``symfony new 2.3.23``).
100103

101104
Read the :doc:`Symfony Release process </contributing/community/releases>`
102105
to better understand why there are several Symfony versions and which one

quick_tour/the_big_picture.rst

-11
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,6 @@ On **Linux** and **Mac OS X** systems, execute the following console commands:
3535
$ sudo mv symfony.phar /usr/local/bin/symfony
3636
$ chmod a+x /usr/local/bin/symfony
3737
38-
.. note::
39-
40-
If your system doesn't have cURL installed, execute the following
41-
commands instead:
42-
43-
.. code-block:: bash
44-
45-
$ php -r "readfile('http://symfony.com/installer');" > symfony.phar
46-
$ sudo mv symfony.phar /usr/local/bin/symfony
47-
$ chmod a+x /usr/local/bin/symfony
48-
4938
After installing the Symfony installer, you'll have to open a new console window
5039
to be able to execute the new ``symfony`` command:
5140

0 commit comments

Comments
 (0)