tourze/diy-form-bundle
A PHP bundle for assembling dynamic, do-it-yourself forms at runtime: define fields, layouts, and validation through configuration instead of hand-written form classes, then render and process submissions with ease. Useful for admin panels and user-defined form builders.
composer require tourze/diy-form-bundle. The -bundle suffix and the DependencyInjection/ + *Bundle.php files are the giveaway: this is packaged as a Symfony bundle, not a Laravel package. Check composer.json ("type": "symfony-bundle") before assuming anything about auto-discovery.config/app.php providers (or a small bridge service provider) and bind the services you actually use. If the package only ships a Bundle subclass, expect to instantiate the container extension yourself or run it through a thin adapter.src/ for Entity/, Repository/, Form/, Controller/ and DependencyInjection/*Extension.php. The extension class tells you which services, parameters, and tags are registered — that is your real API surface, since the README on a 0.0.x package is usually thin.doctrine/dbal plus an ORM bridge (e.g. laravel-doctrine/orm) and a working entity manager before anything runs.FormType at runtime from the field rows, then render the resulting FormView in Blade. This keeps the "DIY" part — user-editable forms — separate from your compiled application forms.*Interface.php next to the implementations), bind those rather than the concrete classes so you can swap or mock them.FormSubmitted) from a listener. Keep business logic out of the bundle's submit path; the package is early and its hooks will move.FormView to Blade partials per field type; keep a resources/views/fields/{type}.blade.php convention so custom field types are just new partials.symfony/validator constraints stored on the field rows, mirror them into Laravel's validator for API endpoints so you don't have two divergent rule sets."0.0.2") and review diffs manually before bumping; treat every 0.0.x as potentially breaking.symfony/form, symfony/http-foundation, and symfony/event-dispatcher standalone — this works, but do not expect the bundle's autoconfiguration, tagged-service collection, or compiler passes to run for free.How can I help you explore Laravel packages today?