Skip to content

Composer: different dependency versions based on environment

Separate composer.json files

COMPOSER=composer.development.json composer update
COMPOSER=composer.production.json composer update

Composer Merge Plugin

  • https://github.com/wikimedia/composer-merge-plugin