Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 499 Bytes

composer.md

File metadata and controls

27 lines (19 loc) · 499 Bytes

Commands - Composer

Update composer:

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin/ --filename=composer

Managing packages:

composer require <package> # Add a new package.
composer remove --update-with-dependencies <package> # Remove a package.
composer update # Update all packages.

Update the autoloader:

composer dump-autoload -a

Nuke:

rm -rf vendor composer.lock && composer clear-cache && composer update