Slide 6
Slide 6 text
composer.json and composer.lock and composer
install and composer update
• composer install
• installs everything if .lock file doesn’t exist, writes .lock file.
• subsequently, brings everything up to date with what’s in the .lock
file.
• composer update
• brings everything in your .json up to date, and updates the .lock file.
• Always run composer install on the server.
• Composer sees that .json and .lock match, installs everything.
• This can be confusing. Read all about it on http://daylerees.com/
composer-primer/ and https://adamcod.es/2013/03/07/composer-
install-vs-composer-update.html