sudo php composer.phar install code example Example: ubuntu install composer php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"