Last active
April 24, 2016 07:23
-
-
Save chuprik/42e6115b2d1a0e584bbbc4d5ff3124bf to your computer and use it in GitHub Desktop.
One command composer install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php | |
php -r "if (hash_file('SHA384', 'composer-setup.php') === '7228c001f88bee97506740ef0888240bd8a760b046ee16db8f4095c0d8d525f2367663f22a46b48d072c816e7fe19959') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |
php composer-setup.php | |
php -r "unlink('composer-setup.php');" |
Author
chuprik
commented
Apr 24, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment