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.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications