Skip to content

Commit c38f342

Browse files
committed
Merge pull request symfony#1280 from tucksaun/contributing-vendors-instructions
[Contributing] Migrated vendors installation instructions
2 parents 6f1e709 + b760043 commit c38f342

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

contributing/code/tests.rst

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,44 @@ The test suite needs the following third-party libraries:
3131
* Twig
3232
* Monolog
3333

34-
To install them all, run the `vendors` script:
34+
To install them all, use `Composer`_:
35+
36+
Step 1: Get `Composer`_
37+
38+
.. code-block:: bash
39+
40+
curl -s http://getcomposer.org/installer | php
41+
42+
Make sure you download ``composer.phar`` in the same folder where
43+
the ``composer.json`` file is located.
44+
45+
Step 2: Install vendors
3546

3647
.. code-block:: bash
3748
38-
$ php vendors.php install
49+
$ php composer.phar --dev install
3950
4051
.. note::
4152

4253
Note that the script takes some time to finish.
4354

55+
.. note::
56+
57+
If you don't have ``curl`` installed, you can also just download the ``installer``
58+
file manually at http://getcomposer.org/installer. Place this file into your
59+
project and then run:
60+
61+
.. code-block:: bash
62+
63+
$ php installer
64+
$ php composer.phar --dev install
65+
4466
After installation, you can update the vendors to their latest version with
4567
the follow command:
4668

4769
.. code-block:: bash
4870
49-
$ php vendors.php update
71+
$ php composer.phar --dev update
5072
5173
Running
5274
-------
@@ -87,3 +109,4 @@ browser.
87109
dependencies installed.
88110

89111
.. _install: http://www.phpunit.de/manual/current/en/installation.html
112+
.. _`Composer`: http://getcomposer.org/

0 commit comments

Comments
 (0)