mmoreram/symfony-bundle-dependencies
Symfony bundle to manage inter-bundle dependencies and load order. Define requirements between bundles and let the resolver ensure needed bundles are enabled and initialized first, helping avoid missing services and configuration issues in complex apps.
AuthBundle, PaymentsBundle) to enable parallel development without merge conflicts.AnalyticsBundle if tracking is enabled).Adopt if:
AuthBundle in isolation).Look elsewhere if:
autowiring or CompilerPass.symfony/dependency-injection).composer.json or symfony/var-dumper for debugging.For Executives: "This package lets us treat Symfony bundles like Lego blocks—explicitly defining which pieces depend on others. For example, we could isolate the ‘Payments’ bundle so the frontend team can deploy updates without touching the auth system. This reduces merge hell, speeds up feature delivery, and makes it easier to spin out bundles into microservices later. It’s a low-risk way to future-proof our architecture while cutting technical debt today."
For Engineering: *"This solves two pain points:
BundleA breaks when BundleB updates? This package forces you to declare dependencies upfront, catching conflicts early.BundleC in isolation? Define its dependencies, and the bundle loads only what it needs—no surprises.
Tradeoff: It’s Symfony-only and last updated in 2021, but the core logic (dependency graphs) is battle-tested. If we hit limits, we can extend it or switch to Symfony’s native tools. Let’s prototype it for the Auth and Payments bundles first."*For Developers:
*"Imagine composer.json but for bundles. You’ll define rules like:
# config/bundles.php
BundleA:
dependencies: [BundleX, BundleY]
optional: [BundleZ] # Loaded only if present
config/bundles.php (not composer.json).
Start small: Use it to isolate one bundle (e.g., Analytics) and measure impact on build times."*How can I help you explore Laravel packages today?