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