Skip to content

Commit

Permalink
Simplified some Symfony installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jan 12, 2015
1 parent 236c26f commit 4904d36
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 44 deletions.
31 changes: 4 additions & 27 deletions best_practices/creating-the-project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,12 @@ In the past, Symfony projects were created with `Composer`_, the dependency mana
for PHP applications. However, the current recommendation is to use the **Symfony
Installer**, which has to be installed before creating your first project.

Linux and Mac OS X Systems
~~~~~~~~~~~~~~~~~~~~~~~~~~

Open your command console and execute the following:

.. code-block:: bash
$ curl -LsS http://symfony.com/installer > symfony.phar
$ sudo mv symfony.phar /usr/local/bin/symfony
$ chmod a+x /usr/local/bin/symfony
Now you can execute the Symfony Installer as a global system command called
``symfony``.

Windows Systems
~~~~~~~~~~~~~~~

Open your command console and execute the following:

.. code-block:: bash
c:\> php -r "readfile('http://symfony.com/installer');" > symfony.phar
Then, move the downloaded ``symfony.phar`` file to your projects directory and
execute it as follows:
.. best-practice::

.. code-block:: bash
Use the Symfony Installer to create new Symfony-based projects.

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

Creating the Blog Application
-----------------------------
Expand Down
15 changes: 9 additions & 6 deletions book/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,22 @@ to meet those requirements.
distributing them. If you want to verify the integrity of any Symfony
version, follow the steps `explained in this post`_.

Basing your Project on a Specific Symfony Version
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Basing your Project on a Specific Symfony Branch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

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

Read the :doc:`Symfony Release process </contributing/community/releases>`
to better understand why there are several Symfony versions and which one
Expand Down
11 changes: 0 additions & 11 deletions quick_tour/the_big_picture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,6 @@ On **Linux** and **Mac OS X** systems, execute the following console commands:
$ sudo mv symfony.phar /usr/local/bin/symfony
$ chmod a+x /usr/local/bin/symfony
.. note::

If your system doesn't have cURL installed, execute the following
commands instead:

.. code-block:: bash
$ php -r "readfile('http://symfony.com/installer');" > symfony.phar
$ sudo mv symfony.phar /usr/local/bin/symfony
$ chmod a+x /usr/local/bin/symfony
After installing the Symfony installer, you'll have to open a new console window
to be able to execute the new ``symfony`` command:

Expand Down

0 comments on commit 4904d36

Please sign in to comment.