‹ Articles

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 5.4:


Using PHP 5.5:


Using PHP 5.6:


Using PHP 7.0:


Using PHP 7.1:


Using PHP 7.2:


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: August 31, 2017

Still Have Questions?

Don't hesitate to contact us if you can't find the answers to your questions.