Composer is a popular tool for dependency management which is widely used by PHP .Composer will check which other packages a specific project depends on and install them for you, using the appropriate versions according to the project requirements.

Prerequisites
For this post, you will need:

A system running Ubuntu 16.04 or 16.10
Access to the server as a regular user with sudo permission

Update and Installing the Dependencies:

Update the package manager with below Cli:

update package

Shell

1

sudo apt-getupdate

Install curl in order to download Composer php-cli or installing and running it.Install php-mbstring package is necessary to provide functions for a library we’ll be using. git is used by Composer for downloading project dependencies, and unzip for extracting zipped packages.