How to Install Composer Locally

In this guide, you will learn how to install composer locally

Updated over a week ago

In Shared and Cloud plans, both versions of PHP Composer are already installed.

While Composer 1 is discontinued, you can see how each version is used here 💡

If you upload a project from your local or remote repository and want to run the command composer update or composer self-update, you need to install Composer locally - follow these steps 👇

2. In your command console, be sure to go to the root folder where you are going to deploy your project. In most cases, this folder follows the path:


To check the path of your current location, run this command:


For more information, refer to this guide: Common SSH Commands

3. Once you are in your project folder, go here: Download Composer and find this section:

Run each command one by one to install Composer locally. Remember to run each command one by one and press enter each time. It should look something like this:

4. Run composer update for the local composer file that you have previously downloaded, that is, the composer.phar file

Make sure you are located in the folder where composer.phar and composer.json are stored (you can see the listing with the ls command), and run any of the following commands:

​​php ./composer.phar update


​php ./composer.phar self-update​

This will start the package updating process. After a few moments, if everything is correct, you will receive a result similar to this:

And that's it! By following the above steps, you can install Composer locally and execute the installation of your project packages successfully!

Did this answer your question?