@@ -9,18 +9,18 @@ way or another the goal is to download these files into your ``vendor/``
9
9
directory and , ideally, to give you some sane way to manage the exact version
10
10
you need for each.
11
11
12
- By default, these libraries are downloaded by running a ``php composer.phar install``
13
- "downloader" binary. This ``composer.phar `` file is from a library called
14
- `Composer`_ and you can read more about installing it in the :ref:`Installation <installation-updating-vendors>`
12
+ By default, these libraries are downloaded by running a ``composer install``
13
+ " downloader" binary. This ``composer`` file is from a library called `Composer`_
14
+ and you can read more about installing it in the :ref:`Installation <installation-updating-vendors>`
15
15
chapter.
16
16
17
- The ``composer.phar `` file reads from the ``composer.json`` file at the root
17
+ The ``composer`` command reads from the ``composer.json`` file at the root
18
18
of your project. This is an JSON-formatted file , which holds a list of each
19
19
of the external packages you need, the version to be downloaded and more.
20
- The ``composer.phar `` file also reads from a ``composer.lock`` file, which
21
- allows you to pin each library to an **exact** version. In fact, if a ``composer.lock``
20
+ ``composer`` also reads from a ``composer.lock`` file , which allows you to
21
+ pin each library to an **exact** version. In fact, if a ``composer.lock``
22
22
file exists, the versions inside will override those in ``composer.json``.
23
- To upgrade your libraries to new versions, run ``php composer.phar update``.
23
+ To upgrade your libraries to new versions, run ``composer update``.
24
24
25
25
.. tip::
26
26
@@ -29,20 +29,20 @@ To upgrade your libraries to new versions, run ``php composer.phar update``.
29
29
30
30
.. code-block:: bash
31
31
32
- $ php composer.phar require doctrine/doctrine-fixtures-bundle
32
+ $ composer require doctrine/doctrine-fixtures-bundle
33
33
34
34
To learn more about Composer, see `GetComposer.org`_:
35
35
36
36
It' s important to realize that these vendor libraries are *not* actually part
37
37
of *your* repository. Instead, they' re simply un-tracked files that are downloaded
38
38
into the ``vendor/``. But since all the information needed to download these
39
39
files is saved in ``composer.json`` and ``composer.lock`` (which *are* stored
40
- in the repository), any other developer can use the project, run ``php composer.phar install``,
40
+ in the repository), any other developer can use the project, run ``composer install``,
41
41
and download the exact same set of vendor libraries. This means that you' re
42
42
controlling exactly what each vendor library looks like, without needing to
43
43
actually commit them to *your* repository.
44
44
45
- So, whenever a developer uses your project, they should run the ``php composer.phar install``
45
+ So, whenever a developer uses your project, they should run the ``composer install``
46
46
script to ensure that all of the needed vendor libraries are downloaded.
47
47
48
48
.. sidebar:: Upgrading Symfony
0 commit comments