Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a4451ce

Browse filesBrowse files
committed
Updated the new Symfony installation instructions
1 parent 4904d36 commit a4451ce
Copy full SHA for a4451ce

File tree

Expand file treeCollapse file tree

2 files changed

+28
-28
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+28
-28
lines changed

‎best_practices/creating-the-project.rst

Copy file name to clipboardExpand all lines: best_practices/creating-the-project.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Installer**, which has to be installed before creating your first project.
1212

1313
Use the Symfony Installer to create new Symfony-based projects.
1414

15-
Read the :doc:`installation chapter </book/installation>`_ of the Symfony Book to
15+
Read the :doc:`installation chapter </book/installation>` of the Symfony Book to
1616
learn how to install and use the Symfony Installer.
1717

1818
Creating the Blog Application

‎book/installation.rst

Copy file name to clipboardExpand all lines: book/installation.rst
+27-27Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@ Installing and Configuring Symfony
66

77
The goal of this chapter is to get you up and running with a working application
88
built on top of Symfony. In order to simplify the process of creating new
9-
applications, Symfony provides an installer that must be installed before
10-
creating the first application.
9+
applications, Symfony provides an installer application.
1110

1211
Installing the Symfony Installer
1312
--------------------------------
1413

15-
Using the Symfony Installer is the only recommended way to create new Symfony
16-
applications. This installer is a PHP application that has to be installed
17-
only once and then it can create any number of Symfony applications.
14+
Using the **Symfony Installer** is the only recommended way to create new Symfony
15+
applications. This installer is a PHP application that has to be installed in your
16+
system only once and then it can create any number of Symfony applications.
1817

1918
.. note::
2019

@@ -29,16 +28,14 @@ ways.
2928
Linux and Mac OS X Systems
3029
~~~~~~~~~~~~~~~~~~~~~~~~~~
3130

32-
Open your command console and execute the following three commands:
31+
Open your command console and execute the following commands:
3332

3433
.. code-block:: bash
3534
36-
$ curl -LsS http://symfony.com/installer > symfony.phar
37-
$ sudo mv symfony.phar /usr/local/bin/symfony
38-
$ chmod a+x /usr/local/bin/symfony
35+
$ sudo curl -LsS http://symfony.com/installer -o /usr/local/bin/symfony
36+
$ sudo chmod a+x /usr/local/bin/symfony
3937
40-
This will create a global ``symfony`` command in your system that will be used
41-
to create new Symfony applications.
38+
This will create a global ``symfony`` command in your system.
4239

4340
Windows Systems
4441
~~~~~~~~~~~~~~~
@@ -47,21 +44,21 @@ Open your command console and execute the following command:
4744

4845
.. code-block:: bash
4946
50-
c:\> php -r "readfile('http://symfony.com/installer');" > symfony.phar
47+
c:\> php -r "readfile('http://symfony.com/installer');" > symfony
5148
52-
Then, move the downloaded ``symfony.phar`` file to your projects directory and
49+
Then, move the downloaded ``symfony`` file to your projects directory and
5350
execute it as follows:
5451

5552
.. code-block:: bash
5653
57-
c:\> move symfony.phar c:\projects
58-
c:\projects\> php symfony.phar
54+
c:\> move symfony c:\projects
55+
c:\projects\> php symfony
5956
6057
Creating the Symfony Application
6158
--------------------------------
6259

63-
Once the Symfony Installer is ready, create your first Symfony application with
64-
the ``new`` command:
60+
Once the Symfony Installer is available, create your first Symfony application
61+
with the ``new`` command:
6562

6663
.. code-block:: bash
6764
@@ -70,7 +67,7 @@ the ``new`` command:
7067
7168
# Windows
7269
c:\> cd projects/
73-
c:\projects\> php symfony.phar new my_project_name
70+
c:\projects\> php symfony new my_project_name
7471
7572
This command creates a new directory called ``my_project_name`` that contains a
7673
fresh new project based on the most recent stable Symfony version available. In
@@ -84,22 +81,25 @@ to meet those requirements.
8481
distributing them. If you want to verify the integrity of any Symfony
8582
version, follow the steps `explained in this post`_.
8683

87-
Basing your Project on a Specific Symfony Branch
88-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
84+
Basing your Project on a Specific Symfony Version
85+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8986

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:
87+
In case your project needs to be based on a specific Symfony version, use the
88+
optional second argument of the ``new`` command:
9289

9390
.. code-block:: bash
9491
95-
# Linux, Mac OS X
92+
// use the most recent version in any Symfony branch
9693
$ symfony new my_project_name 2.3
94+
$ symfony new my_project_name 2.5
95+
$ symfony new my_project_name 2.6
9796
98-
# Windows
99-
c:\projects\> php symfony.phar new my_project_name 2.3
97+
// use a specific Symfony version
98+
$ symfony new my_project_name 2.3.26
99+
$ symfony new my_project_name 2.6.5
100100
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``).
101+
// use the most recent LTS (Long Term Support) version
102+
$ symfony new my_project_name lts
103103
104104
Read the :doc:`Symfony Release process </contributing/community/releases>`
105105
to better understand why there are several Symfony versions and which one

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.