composer Command Examples

A package-based dependency manager for PHP projects. More information: https://getcomposer.org/.

composer init

composer require {{user/package}}

composer install

composer remove {{user/package}}

composer update

composer update --lock

composer why-not {{user/package}}

composer self-update