corleonis/formmetadata
Corleonis FormMetadata is a Laravel package for attaching and managing structured metadata on forms, making it easy to store custom field attributes, configuration, and other form-related details in a consistent, retrievable way.
@Form\Field("text")) so one generic controller can render and persist any entity — is directly roadmap-relevant. It is the difference between shipping one form per entity type and shipping an entity-agnostic admin surface.Consider the pattern — not the dependency — when:
Look elsewhere — or treat this strictly as a design reference — when:
FormMetadataBundle) targeting the Symfony Form component and Doctrine entity metadata. There is no Laravel integration, no composer require path, and no compatible hook against Eloquent, FormRequests, or Blade. Budget a rewrite, not an install.@Form\Field docblock-annotation approach reflects the Doctrine-annotations era; doctrine/annotations 2.x removed the annotation reader and Symfony has been retiring annotation config in favor of PHP 8 attributes. The bundle likely does not run unmodified.Adoption criteria if you proceed anyway: vendor/fork the code, pin it, add tests around the metadata parsing, and confirm the PHP/Symfony versions are ones you are willing to run in production.
For executives. This is a small, unmaintained open-source bundle that demonstrates how to drive form generation from annotations on your data model, so a single generic controller can handle many entity types. It is not a product we can adopt as a dependency — no community, no dependents, no maintenance — and it does not target our Laravel stack. But the underlying idea is directly useful if our roadmap includes customer-defined content types or configurable admin surfaces. Recommendation: treat it as free prior art, not a purchase. If dynamic content is on the roadmap, we can replicate the pattern on our current framework in a timeboxed internal spike rather than take on an unsupported third-party risk.
For engineering. corleonis/formmetadata maps entity class annotations into Symfony Form builder metadata — the piece that makes generic controllers viable and the real value here. Constraints: Symfony-only, pre-PHP-8-attributes, and no maintenance signal. Ask: does a metadata-driven form layer reduce our per-entity cost enough to justify building and owning it? Recommended validation path: fork the repository, read the annotation-to-FormBuilder mapping (a few hundred lines at most), and prototype the same contract using PHP 8 attributes plus a Laravel-side builder that emits FormRequest rules and Blade/Livewire field components, cached rather than resolved per request. Design in field-level authorization from day one so the generic controller cannot become a mass-assignment bypass. If a timeboxed spike meets the boilerplate-reduction target, we build and own it internally with a documented upgrade cadence; if not, we default to Filament (Laravel) or EasyAdmin/API Platform (Symfony) and close the question.
How can I help you explore Laravel packages today?