ibrows/sonata-admin-annotation-bundle
Configure Sonata Admin classes with PHP annotations instead of verbose YAML or service definitions. Declare fields, filters, list/show/form settings and routes directly above each entity for cleaner, self-documenting admin code. Requires Symfony and SonataAdminBundle.
Architecture fit
Admin classes by moving FormMapper, DatagridMapper/ListMapper, and ShowMapper configuration out of imperative configureFormFields()-style methods and into Doctrine annotations on the admin class.ServiceProvider and has no Laravel-facing surface. For a Laravel-first stack the architectural fit is effectively zero.Integration feasibility
sonata-project/admin-bundle, doctrine/annotations, and PHP with annotation support. Composer install succeeds, but the bundle does nothing outside a Symfony kernel with Sonata registered.Technical risk
Key questions
doctrine/annotations versions are in use, and are any of them still supported?Stack fit
Migration path
configure*Fields()/configure*Mapper() methods into annotations class-by-class, keeping the fluent methods as a fallback during transition.Compatibility
sonata-project/admin-bundle and Symfony versions; expect conflicts. Check doctrine/annotations availability and whether PHP 8.1+ deprecations affect annotation reading.Sequencing
Maintenance
doctrine/annotations, which is itself in maintenance mode; plan for an attribute migration as a follow-on cost.Support
Scaling
Failure modes
var/cache; skipping cache clear after admin-class changes yields stale configuration.Ramp-up
Recommendation: Reject for any Laravel-based initiative — the ecosystem mismatch is disqualifying. If a Symfony/Sonata service exists, treat it as a low-risk, low-value convenience only after a passing compatibility spike and an explicit owner for fork maintenance; otherwise standardize on Sonata's native configuration.
How can I help you explore Laravel packages today?