swis/annotation-extra-bundle
Adds extra, ready-to-use annotations to Symfony applications, extending Doctrine's annotation support with convenient shortcuts for common controller and configuration tasks. A lightweight bundle that registers quickly and integrates cleanly with existing projects.
#[...]). Adopting it is adopting a migration obligation: any Symfony 6.2+/PHP 8.1+ modernization work will require rewriting usage sites regardless of whether you keep the bundle. This is a direct input to deprecation-roadmap and upgrade-budget decisions.Consider it only when all of the following hold:
doctrine/annotations already installed) and are not planning a PHP 8.1+/Symfony 6.2+ migration within the dependency's remaining lifetime.swis org is a real corporate open-source source, which is mildly reassuring on provenance, but corporate origin is not a maintenance commitment — confirm the license terms and that the repo is not archived/dormant before any legal review proceeds.Look elsewhere (or build) when any of the following is true:
For executives (30-second version):
We evaluated swis/annotation-extra-bundle as a candidate dependency and recommend against adopting it as a strategic dependency. It is a small Symfony bundle from a corporate open-source org, but it has no external adoption (0 stars, 0 dependents), no support channel, and is built on Doctrine annotations, a mechanism PHP has since deprecated in favor of attributes. The capability it provides is narrow developer-convenience tooling — not a customer-facing differentiator and not a competitive moat. Cost to replicate is estimated at 1–3 engineering days. The recommended path is either (a) replicate the specific behavior we need with native PHP 8 attributes, or (b) if we are mid-migration and short on capacity, fork the source into our own repo and own it. Either way: no new vendor relationship, no licensing negotiation, no procurement cycle, no long-term maintenance exposure. The decision carries low cost and low risk, and removes a future forced-migration item from the roadmap.
For engineering (the technical brief):
doctrine/annotations is deprecated and removed from the default Symfony recipe in modern versions. Every usage site is a future rewrite.composer.json platform constraints, and diff that behavior against a minimal attribute-plus-compiler-pass implementation. In most cases the diff will favor building.composer.json.How can I help you explore Laravel packages today?