Skip to content

Instantly share code, notes, and snippets.

@mrtuvn
Created December 4, 2018 14:30
Show Gist options
  • Save mrtuvn/62b830284d6d1e635a76bcfec199bfc1 to your computer and use it in GitHub Desktop.
Save mrtuvn/62b830284d6d1e635a76bcfec199bfc1 to your computer and use it in GitHub Desktop.
composer install/update
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment