Last active
January 15, 2021 01:50
-
-
Save leonardostefani/2bbfce63a4e7b58b40d08732789f9b04 to your computer and use it in GitHub Desktop.
Composer Hostgator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir ~/bin | |
echo -e '\nPATH=/opt/cpanel/ea-php73/root/usr/bin:$PATH\n' >> ~/.bashrc | |
echo -e '\nPATH=~/bin:$PATH\n' >> ~/.bashrc | |
source ~/.bashrc | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
php composer-setup.php --install-dir=$(eval echo ~$USER)/bin --filename=composer | |
php -r "unlink('composer-setup.php');" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment