Skip to content

Instantly share code, notes, and snippets.

@pjdietz
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjdietz/2fadc2f9d70092a21c99 to your computer and use it in GitHub Desktop.
Save pjdietz/2fadc2f9d70092a21c99 to your computer and use it in GitHub Desktop.
Install Composer
# 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