Installing ComposerEdit this page
Warning: You are browsing the documentation for Symfony 2.3, which is no longer maintained.
Read the updated version of this page for Symfony 6.1 (the current stable version).
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.
- Run the installer as described in the official Composer documentation;
Execute the following command to move the
composer.pharto a directory that is in your path:
$ sudo mv composer.phar /usr/local/bin/composer
Download the installer from getcomposer.org, execute it and follow the instructions.