Skip to content

Instantly share code, notes, and snippets.

@radermacher
Last active August 29, 2015 13:57
Show Gist options
  • Save radermacher/9490727 to your computer and use it in GitHub Desktop.
Save radermacher/9490727 to your computer and use it in GitHub Desktop.
Add support for composer to ManagedHosting Pro @domainfactory
# Run
# curl -sS https://gist.githubusercontent.com/deseloper/9490727/raw/961ed008c8e784fc62a929ae84eed275d25d65f2/install-composer.sh | sh
#
PHPCLI=/usr/local/bin/php5.4.16-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