From b76004308745249fe278b8ebea1909fc6279f357 Mon Sep 17 00:00:00 2001 From: Tugdual SAUNIER Date: Fri, 20 Apr 2012 12:37:12 +0200 Subject: [PATCH] [Contributing] Migrated vendors installation instructions from vendors.php to composer --- contributing/code/tests.rst | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/contributing/code/tests.rst b/contributing/code/tests.rst index bc6ffbe0825..d48ea5eb61b 100644 --- a/contributing/code/tests.rst +++ b/contributing/code/tests.rst @@ -31,22 +31,44 @@ The test suite needs the following third-party libraries: * Twig * Monolog -To install them all, run the `vendors` script: +To install them all, use `Composer`_: + +Step 1: Get `Composer`_ + +.. code-block:: bash + + curl -s http://getcomposer.org/installer | php + +Make sure you download ``composer.phar`` in the same folder where +the ``composer.json`` file is located. + +Step 2: Install vendors .. code-block:: bash - $ php vendors.php install + $ php composer.phar --dev install .. note:: Note that the script takes some time to finish. +.. note:: + + If you don't have ``curl`` installed, you can also just download the ``installer`` + file manually at http://getcomposer.org/installer. Place this file into your + project and then run: + + .. code-block:: bash + + $ php installer + $ php composer.phar --dev install + After installation, you can update the vendors to their latest version with the follow command: .. code-block:: bash - $ php vendors.php update + $ php composer.phar --dev update Running ------- @@ -87,3 +109,4 @@ browser. dependencies installed. .. _install: http://www.phpunit.de/manual/current/en/installation.html +.. _`Composer`: http://getcomposer.org/