While I am familiar with the basics of composer.json and defining dependencies under the require key, I do not quite understand the purpose of require-dev - composer documentation:
require-dev (root only)
Lists packages needed to develop this package or run tests, etc. The requirements of the root package developer are set by default. Both installation or upgrade options support the -no-dev option, which prevents the installation of dependencies between developers.
In an abstract sense, this makes sense, but it's hard for me to imagine situations when I need this functionality.
- What are practical examples of using
require-dev in a workflow? - Is there an example package (or packages) that should be in
require-dev , but not in require ?
php dependency-management composer-php
Mark Fox Aug 29 '13 at 20:09 2013-08-29 20:09
source share