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