Composer Dependencies Manager

Composer Dependencies Manager

PHP Composer for Smart Dependencies Management of Your Cloud Application

composer logo

Composer is one of the most popular dependency management tools for PHP inspired by node’s npm and ruby’s bundler. It will smartly manage all the required libraries and packages for your application. Running on a per-project basis, Composer determines which versions of which packages your project depends on and installs them in a working directory. Moreover, this tool provides automatic updates load, allowing to keep your packages up-to-date.

The Composer is integrated into all Apache and NGINX PHP application servers by default (located at the usr/local/bin folder). It is automatically added to the PATH variable, making this management tool operable from anywhere on the node via the composer shortcut (e.g. composer about). Additionally, in case the project has a composer.json file, the dependencies can be managed directly during the deploy operation with the appropriate post hook script. Namely, you need to move to your project directory and run the install command:

cd $WEBROOT/{project_name}  
composer install

Tip: For the manual installation of the Composer, you can follow the instructions below: