Composer · Question 9 of 12
What is the difference between composer install and composer update?
1 answer is correct. Medium
Show answer
Answer
- A install uses composer.lock, update determines new versions
Explanation
composer install installs exactly the versions from composer.lock. composer update resolves the constraints from composer.json again, installs matching newer versions and rewrites composer.lock.