Composer · Question 12 of 12

Which statements about Composer are correct?

3 answers are correct. Hard

Show answer

Answer

  • B composer create-project creates a new project from a package
  • C composer require changes composer.json and composer.lock
  • E composer install without composer.lock resolves the constraints itself

Explanation

create-project creates a project, require and remove change both files. If composer.lock is missing, install behaves like update and writes a new lock file. composer.lock is never edited by hand.

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