Created
January 22, 2014 13:04
-
-
Save chrisnharvey/8558351 to your computer and use it in GitHub Desktop.
Global composer installer
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
#!/usr/bin/env bash | |
curl -sS https://getcomposer.org/installer | php -- --install-dir=/tmp | |
/tmp/composer.phar global require composer/composer | |
echo '# Composer' >> ~/bash_profile | |
echo 'export PATH=~/.composer/vendor/bin:$PATH' >> ~/.bash_profile | |
rm /tmp/composer.phar | |
echo 'Composer installed globally.' | |
echo "You can now install global packages by running 'composer global require vendor/package'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment