Skip to content

Instantly share code, notes, and snippets.

@devdiva
Created March 1, 2016 13:52
Show Gist options
  • Save devdiva/deb9608147250fb63bb8 to your computer and use it in GitHub Desktop.
Save devdiva/deb9608147250fb63bb8 to your computer and use it in GitHub Desktop.
# Official instructions here: https://getcomposer.org/download/
# See official instructions for the latest version of the following commands
php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php
php -r "if (hash('SHA384', file_get_contents('composer-setup.php')) === 'fd26ce67e3b237fffd5e5544b45b0d92c41a4afe3e3f778e942e43ce6be197b9cdc7c251dcde6e2a52297ea269370680') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); }"
# For the setup command, use the following arguments in order to add the command to local bin
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