Skip to content

Adding a link to composer and mentioning the installation of it. #1994

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 16, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions components/using_components.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ How to Install and Use the Symfony2 Components
==============================================

If you're starting a new project (or already have a project) that will use
one or more components, the easiest way to integrate everything is with Composer.
one or more components, the easiest way to integrate everything is with `Composer`_.
Composer is smart enough to download the component(s) that you need and take
care of autoloading so that you can begin using the libraries immediately.

Expand All @@ -33,13 +33,15 @@ may also need to adjust the version (e.g. ``2.1.1`` or ``2.2.*``).

You can research the component names and versions at `packagist.org`_.

**3.** Download the vendor libraries and generate the ``vendor/autoload.php`` file:
**3.** `Install composer`_ if you don't already have it present on your system:

**4.** Download the vendor libraries and generate the ``vendor/autoload.php`` file:

.. code-block:: bash

$ php composer.phar install

**4.** Write your code:
**5.** Write your code:

Once Composer has downloaded the component(s), all you need to do is include
the ``vendor/autoload.php`` file that was generated by Composer. This file
Expand Down Expand Up @@ -93,4 +95,6 @@ documentation to find out more about how to use it.

And have fun!

.. _Composer: http://getcomposer.org
.. _Install composer: http://getcomposer.org/download/
.. _packagist.org: https://packagist.org/