September 2017
Intermediate to advanced
244 pages
6h 44m
English
In require-dev , only those packages which are required during the development phase are listed. We used an example, of phpunit/phpunit in the Composer install example but actually, packages like phpunit and phpspec are only required in development and not in production. Also, if there are any packages required related to debugging, they can also be included in the require-dev object. And the composer install command will install all the packages which are in require-dev, as well as under require object.
However, if we want to only install packages which are required in production, they can be installed with:
composer install --no-dev
In the aforementioned example, composer.json, laravel/tinker and laravel/laravel
Read now
Unlock full access