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