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