acseo/fast-show-generator-bundle
Symfony bundle to quickly generate “show” view data for entities using annotations or YAML. Define labels, visibility, and groups per property, then fetch showable data in your controller and render it easily in Twig. Compatible with Symfony 5/6.
config/ or database/ directories.laravel-doctrine/orm) for entity metadata.symfony/property-access), increasing bundle size.MetadataFactory) may not align with Laravel’s cache drivers.spatie/laravel-query-builder or custom Eloquent accessors.| Component | Symfony Fit | Laravel Fit | Workarounds |
|---|---|---|---|
| Entity Metadata | Native (Doctrine) | Requires Doctrine bridge or Eloquent adapter | Custom MetadataFactory for Eloquent |
| Annotations | Native (@Annotation) |
Not natively supported | Use phpDocumentor/reflection or YAML |
| YAML Config | Works with Symfony config | Needs mapping to Laravel’s config/ |
Store in config/fastshowgenerator.php |
| Output Rendering | Twig/Symfony templates | Blade or API responses | Create Blade directives or JSON responses |
| Dependency Injection | Symfony DI | Laravel’s IoC container | Bind services manually in AppServiceProvider |
laravel-doctrine/orm, configure Doctrine, and adapt YAML to Laravel’s config.app/Http/Resources/MyEntityResource.php).getShowableData() as JSON.cache()->remember).| Risk | Symfony Impact | Laravel Impact | Mitigation |
|---|---|---|---|
| Metadata Parsing Errors | Breaks show actions | Same; may crash API/Blade rendering | Validate YAML/annotations via CI |
| Doctrine Dependency | N/A | Fails if Doctrine bridge misconfigured | Use Eloquent adapter or avoid Doctrine |
| Caching Issues | Stale metadata in production | Same; Laravel cache may not invalidate | Use cache tags or file-based caching |
| Version Conflicts | Symfony updates break bundle | Doctrine bridge conflicts with Laravel | Pin versions in composer.json |
| Annotation Processing | Slow reflection in dev | Slower in Laravel (no native support) | Pre-compile annotations to YAML |
ClassMetadata).How can I help you explore Laravel packages today?