Skip to content

Instantly share code, notes, and snippets.

@chrisnharvey
Created January 22, 2014 13:04
Show Gist options
  • Save chrisnharvey/8558351 to your computer and use it in GitHub Desktop.
Save chrisnharvey/8558351 to your computer and use it in GitHub Desktop.
Global composer installer
#!/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