Answer the question
In order to leave comments, you need to log in
What does require-dev do in Composer?
What is the difference between require and require-dev?
Answer the question
In order to leave comments, you need to log in
Responsible for those dependencies that are needed only for the dev environment.
For example, you know for sure that the phpunit library is needed for development, but it will be superfluous on production, then phpunit gets into require-dev.
When a simple
composer installdev dependencies are also installed.
composer install --no-devonly those dependencies that are in the main require block are installed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question