first, get php working by following this github script
sudo echo ‘‘ >/var/www/html/index.php ; ###create a php info page
install Composer:
sudo curl -sS https://getcomposer.org/installer | php ;
sudo mv ./composer.phar /usr/local/bin/composer ;
sudo chmod +x —verbose /usr/local/bin/composer ;
/usr/local/bin/composer -V ;
su —command ‘/usr/local/bin/composer -V’ mark
su —command ‘/usr/local/bin/composer require league/oauth2-facebook’ mark ;
su —command ‘/usr/local/bin/composer require league/oauth2-github’ mark ;
su —command ‘/usr/local/bin/composer require league/oauth2-google’ mark ;
su —command ‘/usr/local/bin/composer require stevenmaguire/oauth2-microsoft’ mark ;
##su —command ‘/usr/local/bin/composer require hayageek/oauth2-yahoo’ mark ;