To install composer on Cpanel server, run
cd /usr/local/bin/ curl -s https://getcomposer.org/installer | php mv composer.phar composer chmod +x composer
If you get error related to phar, you need to run EasyApache and enable phar, this can be done through WHM.