3.6.1 Using Composer on Hosting

Composer Logotype

All TheHost shared hosting services include support for the PHP Composer dependency manager. You can use Composer only on the command line of an SSH connection. How to connect to the hosting command line is described in detail in this article.

The current current version of PHP Composer on hosting services is 2.6.6.

The following commands are available to use Composer in the terminal:

  • composer – launches Composer running PHP version 5.3
  • composer-php-5.3 – launches Composer running PHP version 5.3
  • composer-php-5.4 – launches Composer running PHP version 5.4
  • composer-php-5.5 – launches Composer running PHP version 5.5
  • composer-php-5.6 – launches Composer running PHP version 5.6
  • composer-php-7.0 – launches Composer running PHP version 7.0
  • composer-php-7.1 – launches Composer running PHP version 7.1
  • composer-php-7.2 – launches Composer running PHP version 7.2
  • composer-php-7.3 – launches Composer running PHP version 7.3
  • composer-php-7.4 – launches Composer running PHP version 7.4
  • composer-php-8.0 – launches Composer running PHP version 8.0
  • composer-php-8.1 – launches Composer running PHP version 8.1
  • composer-php-8.2 – launches Composer running PHP version 8.2
  • composer-php-8.3 – launches Composer running PHP version 8.3

Usage example:

  1. composer-php-7.4 about

– will launch information about Composer on the hosting