Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Created July 5, 2024 07:08
Show Gist options
  • Save diegopacheco/a712f34b8a6022376b9d173a3b9e13ab to your computer and use it in GitHub Desktop.
Save diegopacheco/a712f34b8a6022376b9d173a3b9e13ab to your computer and use it in GitHub Desktop.
Install PHP Composer
curl -s https://getcomposer.org/installer | php
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
sudo mv composer.phar /usr/local/bin/composer
composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment