WARNING: You are browsing the documentation for Symfony 2.3 which is not maintained anymore. Consider upgrading your projects to Symfony 4.3.

Installing Composer

2.3 version
Unmaintained

Installing Composer

Composer is the package manager used by modern PHP applications. Use Composer to manage dependencies in your Symfony applications and to install Symfony Components in your PHP projects.

It's recommended to install Composer globally in your system as explained in the following sections.

Install Composer on Linux and Mac OS X

  1. Run the installer as described in the official Composer documentation;

  2. Execute the following command to move the composer.phar to a directory that is in your path:

    1
    $ sudo mv composer.phar /usr/local/bin/composer
    

Install Composer on Windows

Download the installer from getcomposer.org, execute it and follow the instructions.

Learn more

Read the Composer documentation to learn more about its usage and features.

This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.