You can install Composer globally on your server running cPanel/WHM.
I mostly use CentOS linux distro for my web servers but you can install Composer on any operating system or distribution.
To install Composer, you’ll need SSH access and preferably root or a user with the appropriate permissions to do this.
Open up your terminal/command line and login via SSH. Then navigate to the temporary directory
Then download the Composer folder with CURL and execute it with PHP
curl -sS https://getcomposer.org/installer | php
This will generate a
composer.phar file. Move this file to
/usr/local/bin so that you can globally use
composer command on your server.
mv composer.phar /usr/local/bin/composer
And that’s it, you’re all done, Composer can now be globally used!