install composer
yum update yum install epel-release yum-utils -y yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum-config-manager –enable remi-php70 yum install php
-
Install PHP CLI(command line interface) yum -y install php-cli php-zip unzip wget
-
Download the Composer installer php -r “copy(‘https://getcomposer.org/installer’, ‘composer-setup.php’);”
-
To verify the data integrity of the script compare the script SHA-384 HASH=”$(wget -q -O - https://composer.github.io/installer.sig)”
-
run php -r “if (hash_file(‘SHA384’, ‘composer-setup.php’) === ‘$HASH’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;”
*If the hashes match, the following message will be shown: Installer verified 1번부터 다시 실행
?
-
install Composer in the?/usr/local/bin?directory: php composer-setup.php –install-dir=/usr/local/bin –filename=composer
-
확인 composer