terminal42/service-annotation-bundle
A Symfony bundle that lets you define and configure dependency-injection services using PHP annotations, reducing boilerplate YAML or XML. Annotate classes to register services, tags, and dependencies automatically.
AppServiceProvider model. The PM-relevant conclusion is that it is generally not a fit for a pure Laravel application, and is relevant mainly for Laravel-adjacent codebases that embed Symfony components, maintain shared bundles, or are mid-migration between the two.Consider it when:
Look elsewhere when:
ServiceProvider model already cover this ground; adding Symfony DI semantics buys complexity, not capability.To executives: This is a small, low-risk maintenance update to a niche Symfony dependency — it adds support for the current Symfony major version. It is not a product feature and does not change what we ship. Its value is narrow but real: it keeps an upgrade path open and confirms the dependency is still maintained. No budget, headcount, or roadmap change is implied. The strategic point is that this package is only relevant if we are running Symfony-style service configuration; for our Laravel surface area it is out of scope, and we should treat adoption as an architecture decision rather than a feature decision.
To engineering: Version 1.1.6 is a compatibility bump — Symfony 7 is now allowed, with no breaking changes, no deprecations, and no API surface change. Practically, this unblocks keeping the package through a Symfony 6→7 upgrade and should be verified in CI against the Symfony 7 matrix. Before wider use, confirm two things: (1) whether we are on annotations or native PHP attributes, since that affects tooling and static analysis, and (2) that container cache warmup and service discovery behavior are covered by tests in our setup. For Laravel-only services, do not introduce this — use the framework's own container and providers. Recommended posture: track it, upgrade it opportunistically, and revisit adoption only if we introduce Symfony components or shared bundles.
Recommendation: Adopt only in Symfony-based or mixed-stack modules; treat 1.1.6 as a routine upgrade with no migration effort and no roadmap impact.
How can I help you explore Laravel packages today?