Installing Composer

Composer is the package manager used by modern PHP applications and the recommended way to install Symfony2.

Install Composer on Linux and Mac OS X

To install Composer on Linux or Mac OS X, execute the following two commands:

$ curl -sS | 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 and then run:

$ php installer
$ sudo mv composer.phar /usr/local/bin/composer

Install Composer on Windows

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

Learn more

You can read more about Composer in its documentation.