M
M
miy2015-05-14 23:53:49
PHP
miy, 2015-05-14 23:53:49

Composer - how to install only dev dependencies?

For example, I have 2 configuration classes for an application.
During development, I want composer to pull one package of dependencies, and another for production.
There is an option --no-dev, it ignores dependencies that are written in require-dev, but how can I make composer take dependencies from require-dev only and ignore the rest?
If you have any ideas, please share. It would also be great if you share your experience of storing configs for development and production.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2015-05-14
@shoomyst

Are you sure you're doing everything right? :)
Give a situation when a package from production is not needed on a dev

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question