Installing composer
To install composer, follow these steps:- Log in to your account using SSH.
-
To download and install composer, type the following commands:
📘 Note To confirm composer installed correctly, type the following command:
The composer.phar file should be listed in the ~/bin directory. -
To create a helper script to run composer, type the following command:
-
To make the helper script executable, type the following command:
-
To configure your shell environment so you can run composer from any directory, type the following commands:
📘 Note
-
To confirm composer is configured correctly, type the following command from any directory:
Composer should display the version number.
-
In the future, to update the composer installation to the newest version, type the following command:
-
To confirm composer is configured correctly, type the following command from any directory: