Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Run Compose in SSH
This guide explains how to run the open source dependency manager Compose 1 and 2 using an SSH command.
Preamble
- Compose is an open source dependencies manager for PHP that manages libraries and packages required 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.
- As of version 2.2 of Compose, it is necessary to have at least
PHP 7.2.5
.
Run Composer
To use Compose on your hosting, you need to connect to your server via SSH and install Compose on your accommodation by indicating the following order:
Composer
... for Compose 1.x!
Composer2
... for Compose Two!
You can also use the following alias to install the version compatible with the PHP version in place on your hosting:
Composer --version
... which will give e.g. 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
Link to this FAQ: