1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Run Composer in SSH
This guide explains how to run the open source Composer 1 and 2 dependency manager using an SSH command.
Composer is an open-source dependency manager for PHP that helps manage the libraries and packages needed for a specific PHP project. It allows developers to define the libraries their application needs and install them consistently, making it easier to manage dependencies for complex PHP applications.
Run Compose
To use Composer on your hosting, you need to connect to your server via SSH and install Composer on your hosting by entering the following command:
compose
... for Composer 1.x!
compose2
... for Composer 2!
You can also use the following alias to install the version compatible with the version of PHP in place on your hosting:
composer --version
... which will give for example Composer version 2.5.0 2022-12-20 10:44:08
composer_php5.6 --version
... will give Composer version 1.8.6 2019-06-11 15:03:05