The general rule is that you want packages from the require-dev section only to be in development environments (dev), for example, in a local environment.
Packages in the require-dev section are packages that help you debug your application, run tests, etc.
In an intermediate and production environment, perhaps you only need packages from the require section.
But in any case, you can start the installation of the composer --no-dev and composer update --no-dev in any environment, the command will install only packages from the required section, not from require-dev , but you probably want to run this only when setting up and releasing the medium at a local level.
Theoretically, you can put all packages in the required partition and nothing will happen, but you do not want to create packages in the production environment for the following reasons:
- speed
- the ability to post some debugging information
- etc
Some good candidates for require-dev :
"filp/whoops": "^2.0", "fzaninotto/faker": "^1.4", "mockery/mockery": "^1.0", "nunomaduro/collision": "^2.0", "phpunit/phpunit": "^7.0"
You can see what the above packages do, and you will see why you do not need them in production.
See here for more details: https://getcomposer.org/doc/04-schema.md
fico7489 Aug 01 '18 at 6:56 2018-08-01 06:56
source share