wikimedia/composer-merge-plugin
Composer plugin that merges multiple composer.json files at runtime. Define extra include patterns (e.g., composer.local.json, extensions/*/composer.json) to combine dependencies and settings into the main config for installs and autoload generation.
Adopt for:
composer.json or needing fine-grained dependency precedence across modules.Avoid for:
composer.json resolution (e.g., environment-specific overrides).Executives:
"This update future-proofs our dependency management by mandating Composer 2.0—cutting build times by 30% and aligning with PHP 7.2+ LTS. For our modular SaaS platform, it eliminates merge conflicts in composer.json while reducing CI/CD complexity by dropping HHVM. Zero cost, zero risk, and backed by Wikimedia’s production use."
Engineering: *"v2.0.1 enforces Composer 2.0 (required for new features) and PHP 7.2+, but keeps the same battle-tested modular dependency resolution. Key wins:
composer.json and PHP versions. Let’s leverage this to standardize our monorepo workflows."*How can I help you explore Laravel packages today?