Updated for PHP 7.2:
cd $HOME
ln -s `which php72` ~/bin/php
export PATH=$HOME/bin:$PATH
curl -sS https://getcomposer.org/installer | php72
echo -e "\n# Composer\nalias composer=\"php72 \$HOME/bin/composer.phar\"" >> $HOME/.bash_profile
source $HOME/.bash_profile
Example from Webfaction Hosting.
- Log in to post comments