Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shaunthornburgh/775d6d66174591e615db5310b7b69f29 to your computer and use it in GitHub Desktop.
Save shaunthornburgh/775d6d66174591e615db5310b7b69f29 to your computer and use it in GitHub Desktop.
Install Composer
curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php
HASH=`curl -sS https://composer.github.io/installer.sig`
echo $HASH
php -r "if (hash_file('SHA384', '/tmp/composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
sudo php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer
composer --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment