php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
Verificar la integridad del instalador:
php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); }"
Ejecutar el instalador:
php composer-setup.php
Mover composer.phar a un directorio accesible:
sudo mv composer.phar /usr/local/bin/composer
Verificar la instalación de composer:
composer --version
No hay comentarios:
Publicar un comentario