Install and Configure Composer on Ubuntu 14.04

Install Composer

https://getcomposer.org/doc/00-intro.md#globally

  • Ensure the Curl dependency is installed.
    sudo apt-get -y install curl
  • Download the Composer installer and pass it to php.
    sudo curl -sS https://getcomposer.org/installer | php
  • Place the composer executable in a directory included in the system PATH.
    sudo mv composer.phar /usr/local/bin/composer
  • Ensure {USER} has ownership of files installed in their home directory.
    sudo chown -hR {USER}:{USER} ~/
  • Make sure Composer's global bin directory is on the system PATH.
    sudo sed -i '1i export PATH="$HOME/.composer/vendor/bin:$PATH"' $HOME/.bashrc
    source $HOME/.bashrc

Open Source Software:

Operating System: