Skip to content

Instantly share code, notes, and snippets.

@ludo237
Created October 17, 2016 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ludo237/8b83ab33112f1e816c29a4e77d1f9d43 to your computer and use it in GitHub Desktop.
Save ludo237/8b83ab33112f1e816c29a4e77d1f9d43 to your computer and use it in GitHub Desktop.
Installing Composer via PHP
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment