Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

masterpowers's avatar

Composer Require-Dev Question

Hi I got A Question About Composer Require-dev

"require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~4.0",
        "symfony/css-selector": "2.8.*|3.0.*",
        "symfony/dom-crawler": "2.8.*|3.0.*"
    },

Can i Still Access these Class Dependancy If Im on Production ? Coz i Got an Artisan Command that Utilizes Faker.

I want to Know if I Can Use it During Production , If Not What is the Best way of Doing it

0 likes
2 replies
michaeldyrynda's avatar
Level 41

Unless you specifically use the --no-dev option when installing, the packages will be available in production.

Anything you plan on using in production should be in the require section; you can move Laravel defaults there without any issues.

Please or to participate in this conversation.