Composer

Author(s)
Nils Adermann, Jordi Boggiano
Website
https://getcomposer.org/
License
MIT License
Documentation
https://getcomposer.org/doc/
GitHub
composer/composer
Packagist
composer/composer

0 0 0

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

Qafoo Quality Analyzer, atoum, Behat, Codeception, Composer, dePHPend, PHP Security Advisories Database, Kahlan, PHP Parallel Lint, PHP_Depend, peridot, Phan, Pho, PHPCompatibility, PHP Coding Standards Fixer 2, PHP Formatter, PHP Assumptions, PhpCodeAnalyzer, PHP Code Beautifier and Fixer, PhpCodeFixer, PHPCheckstyle, PHP Copy/Paste Detector, PHP_CodeSniffer, PHP Dead Code Detector, phpDox, PHPLOC, PHP Mess Detector, PhpMetrics, Smart Analyzer for PHP, PHPSpec, PHPStan - PHP Static Analysis Tool, PHPUnit, PHPVisualDebt, Psalm, Parse - A PHP Security Scanner, Roave Security Advisories, SensioLabs Security Checker, SimpleTest, Storyplayer, PHP_Testability, Tuli

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