Warning: You are browsing the documentation for Symfony 2.5, which is no longer maintained.
Read the updated version of this page for Symfony 5.3 (the current stable version).
Table of Contents
Composer is the package manager used by modern PHP applications and the recommended way to install Symfony2.
To install Composer on Linux or Mac OS X, execute the following two commands:
$ curl -sS https://getcomposer.org/installer | php $ sudo mv composer.phar /usr/local/bin/composer
If you don't have
curl installed, you can also just download the
installer file manually at http://getcomposer.org/installer and
$ php installer $ sudo mv composer.phar /usr/local/bin/composer
Download the installer from getcomposer.org/download, execute it and follow the instructions.