← ServerPilot Docs

How to Use Composer for PHP Dependency Management

Composer is a popular PHP dependency manager.

Composer is installed by ServerPilot. However, because ServerPilot makes available multiple versions of PHP, you should invoke the correct Composer command for your app's version of PHP.

Each of the following commands calls Composer using a different PHP version:

Using PHP 8.3:

composer8.3-sp

Using PHP 8.2:

composer8.2-sp

Using PHP 8.1:

composer8.1-sp

Using PHP 8.0:

composer8.0-sp

Using PHP 7.4:

composer7.4-sp

Using PHP 7.3:

composer7.3-sp

Using PHP 7.2:

composer7.2-sp

Using PHP 7.1:

composer7.1-sp

Using PHP 7.0:

composer7.0-sp

Using PHP 5.6:

composer5.6-sp

You can also configure the PHP version used when you call just the command composer.

For more information on using Composer, see the Composer getting started guide.

Last updated: November 20, 2023

Launch your first site in 5 minutes