curl -sS https://getcomposer.org/installer | php
(sudo) mv composer.phar /usr/local/bin/composer
Courtesy of http://askubuntu.com/questions/116960/global-installation-of-composer-manual " />