Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs and it will install them in your project for you.
Table of contents
To start using Composer in your project, all you need is a composer.json file. This file describes the dependencies of your project and may contain other metadata as well.1
composer init --require=aws/aws-sdk-php:2.* -n
To fetch the defined dependencies into your local project, just run the install command of composer.phar.2
php composer.phar install
php composer.phar update