You can follow below steps to install and configure PHP composer:
- Login to server via SSH.
- You can use below command to configure shell environment to use composer.
Code:
Copyecho 'alias composer="php -d allow_url_fopen=On ${HOME}/composer.phar"' >> ~/.bashrcsource ~/.bashrc
- Now its time to download composer installer with this command:
Code:
Copycd ~
curl -k -O https://getcomposer.org/installer
- You can use below command to install composer:
Code:
Copyphp -d allow_url_fopen=On installer