Last active
August 29, 2015 14:16
-
-
Save pjdietz/2fadc2f9d70092a21c99 to your computer and use it in GitHub Desktop.
Install Composer
This file contains hidden or 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
# Install composer to /usr/loca/bin/composer | |
curl -sS https://getcomposer.org/installer | php -- --filename=composer --install-dir=/usr/local/bin | |
# With sudo | |
curl -sS https://getcomposer.org/installer | sudo php -- --filename=composer --install-dir=/usr/local/bin | |
# For scripting, install or self-update | |
if type composer &> /dev/null; then | |
composer self-update | |
else | |
curl -sS https://getcomposer.org/installer | php -- --filename=composer --install-dir=/usr/local/bin | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment