Skip to content

Instantly share code, notes, and snippets.

@unti1x
Created August 8, 2019 11:30
Show Gist options
  • Save unti1x/ce91251f937c3649c4101815a636208b to your computer and use it in GitHub Desktop.
Save unti1x/ce91251f937c3649c4101815a636208b to your computer and use it in GitHub Desktop.
Single line composer installer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
[ \
"$(wget -q -O - https://composer.github.io/installer.sig)" \
== "$(php -r "echo hash_file('sha384', 'composer-setup.php');")" \
] && php composer-setup.php --quiet && php composer.phar --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment