Composer

(( gitHubWatchers )) (( gitHubStars )) (( gitHubForks ))

Composer is a tool for dependency management in PHP.

It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.

Packages you can install with Composer

Verified installation

For a verified installation, please check the official Composer documentation.

Installation

Install from a PHP Archive (with curl or wget)

The PHPUnit documentation has a clear manual on how to install PHARs on Windows.

If you have the Suhosin extension enabled, make sure to allow the execution of PHARs in your php.ini:
suhosin.executor.include.whitelist = phar

Locally

Download it:
wget -O composer.phar https://getcomposer.org/composer.phar
or
curl -sSL https://getcomposer.org/composer.phar -o composer.phar
Use it:
php composer.phar

Globally

Download it:
wget -O composer.phar https://getcomposer.org/composer.phar
or
curl -sSL https://getcomposer.org/composer.phar -o composer.phar
Install it as an executable:
chmod a+x composer.phar
sudo mv composer.phar /usr/local/bin/composer
Use it:
composer