Linux (Ubuntu)

sudo apt-get install php5-cli

Installing Composer

Composer is a package manager for PHP, much like gem for Ruby. It is used to download and manage third party libraries for your project.

Note: You need to have git installed for composer to work properly.

  1. Download https://getcomposer.org/composer.phar
  2. Put it into your project directory
  3. Rename it to composer
  4. Make it executable: chmod +x composer.phar
  5. Add it to .gitignore: echo "/composer" >> .gitignore

Now to run its self check with

./composer.phar diagnose

It should report something like this:

Checking platform settings: OK
Checking git settings: OK
Checking http connectivity: OK
Checking disk free space: OK
Checking composer version: OK

Your PHP installation is now ready for development!