Skip to content

Instantly share code, notes, and snippets.

@immutef
Created February 21, 2012 17:16
Show Gist options
  • Save immutef/1877496 to your computer and use it in GitHub Desktop.
Save immutef/1877496 to your computer and use it in GitHub Desktop.
global Composer installation
#!/usr/bin/env sh
COMPOSER=$HOME/.composer.phar
if [ ! -f $COMPOSER ]
then
wget -q -nv -nc -O $COMPOSER http://getcomposer.org/composer.phar
fi
/usr/bin/env php $COMPOSER $@
@immutef
Copy link
Author

immutef commented Feb 21, 2012

Installation:

$> wget -nc -O ~/bin/composer https://gist.github.com/raw/1877496/045ec6a44fb8edbd438342293c30df1817cbb64a/composer
$> chmod +x ~/bin/composer

Usage:

$> composer list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment