Composer · Question 10 of 12

Why does composer.lock belong in version control?

1 answer is correct. Medium

Show answer

Answer

  • D So that all environments get the same versions

Explanation

With composer.lock committed, composer install installs the same versions locally, on staging and live. It contains no credentials.

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