If you want to install composer on a godaddy shared hosting, you can follow these steps:
On root folder type:
wget https://getcomposer.org/installer
php installer --check
php installer
rm -f installer
to return the path of composer type:
which composer
it’ll return something like: /opt/cpanel/composer/bin/composer
then you can use composer using its full path:
php-cli /opt/cpanel/composer/bin/composer install
for ex. :
php-cli /opt/cpanel/composer/bin/composer install
php-cli /opt/cpanel/composer/bin/composer update
Also if you want to run php artisan , you can type:
/usr/bin/php-cli artisan