Skip to content

Instantly share code, notes, and snippets.

@MajideND
Last active February 22, 2022 21:19
Show Gist options
  • Save MajideND/786f5860d2d469a8f34841fd8a567c48 to your computer and use it in GitHub Desktop.
Save MajideND/786f5860d2d469a8f34841fd8a567c48 to your computer and use it in GitHub Desktop.
HASH="$(wget -q -O - https://composer.github.io/installer.sig)"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment