Skip to content

Instantly share code, notes, and snippets.

@joka123
Created March 4, 2016 11:18
Show Gist options
  • Save joka123/883c3d1fc02c47ce6fed to your computer and use it in GitHub Desktop.
Save joka123/883c3d1fc02c47ce6fed to your computer and use it in GitHub Desktop.
composer for domainfactory
# Run
# curl -sS https://gist.githubusercontent.com/joka123/883c3d1fc02c47ce6fed/raw/441bdd9d2aee517bf19d35340eb0a5e592479c31/install.composer.sh | sh
#
PHPCLI=/usr/local/bin/php5-56LATEST-CLI
cd ~; mkdir bin
curl -sS https://getcomposer.org/installer | ${PHPCLI} -- --install-dir=bin
chmod +x bin/composer.phar
echo "alias composer=\"${PHPCLI} ~/bin/composer.phar\"" >> ~/.bashrc
echo "alias composer=\"${PHPCLI} ~/bin/composer.phar\"" >> ~/.zshrc
source ~/.bashrc
source ~/.zshrc
echo "* * * * * * * * * * * * * * * * * * * * * * * * * * * * *"
composer --version
echo "* * * * * * * * * * * * * * * * * * * * * * * * * * * * *"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment