24/05/2015 - SYMFONY
Information below covers what you need to know about most composer. Note: If you have installed composer globally then you can use composer
instead of php composer.phar
.
php composer.phar install
if "composer.lock" has been changed.Adding a new dependency into composer.json with command line and install it.
php composer.phar require (or require --dev) inanzzz/inanzzz-bundle: 1.1.1
Installing a package which was added to composer.json manually.
php composer.phar update inanzzz/inanzzz-bundle
Installing project first time.
php composer.phar install
Removing a dependency which exists in composer.json.
php composer.phar remove inanzzz/inanzzz-bundle
Removing a dependency which doesn't exist in composer.json.
php composer.phar update inanzzz/inanzzz-bundle
rm -rf ~/.composer/
php composer.phar self update