Skip to content

Instantly share code, notes, and snippets.

@SpiffGreen
Created June 20, 2022 13:14
Show Gist options
  • Save SpiffGreen/195b8a9ed9b0954819d111087dbccff6 to your computer and use it in GitHub Desktop.
Save SpiffGreen/195b8a9ed9b0954819d111087dbccff6 to your computer and use it in GitHub Desktop.
Composer Setup
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'some-long-SHA-checksum-number-goes-here') { 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