Composer Cheatsheet

Install Dependencies

composer install
composer install --dry-run

Add Packages

composer require vendor/package
composer require vendor/package --dev

Update Packages

composer update
composer update --with-dependencies
composer update vendor/package
composer update vendor/*
composer update --lock

Remove Packers

composer remove vendor/package

Update Autoloader

composer dumpautoload -o