Composer - Dependency Manager for PHP

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.




Composer Linux

MS Windows

Composer Windows

Project Setup: composer.json

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

Installing Project Dependencies

To fetch the defined dependencies into your local project, just run the install command of composer.phar.2

php composer.phar install
composer install

Updating Project Dependencies

php composer.phar update
composer update

Last edited by MichaelAlber .
Page last modified on Thursday September 6, 2018 16:45:12 UTC.