ardenexal/symfony-form-handler
Illuminate\Http\Request, FormRequest) differs fundamentally from Symfony’s Form component, requiring significant abstraction or wrapper logic.Form dependency. A custom Laravel adapter would need to:
FormHandler to Laravel’s FormRequest/Request lifecycle.Form logic (e.g., validation, submission) in Laravel’s ecosystem.bind() vs. Symfony’s DI).FormRequest classes, Validator facade) that achieve similar goals with lower risk.symfony/form, symfony/validator) that may introduce conflicts or unnecessary overhead.FormHandler behavior (e.g., event-driven form processing) that Laravel’s alternatives lack?Illuminate\Validation\Factory, FormRequest) is optimized for its ecosystem. Forcing Symfony’s FormHandler would require:
Form and FormHandler classes.ValidatorServiceProvider).FormHandler provides unique value (e.g., complex workflows, event hooks).FormRequest validation, FormServiceProvider).SymfonyFormHandler service that wraps the package).handle() vs. submit()).Form relies on FormBuilder, FormFactory, and FormInterface—Laravel lacks direct equivalents.EventDispatcher, while Laravel uses middleware/events with different priorities.Validator facade for validation logic.FormHandler with a FormService that leverages FormRequest and Validator.SymfonyFormHandler trait/class).Form component may introduce security vulnerabilities or compatibility issues with Laravel’s DI container.Form component would face a steep learning curve.Form is heavier than Laravel’s Validator; could increase memory usage in high-traffic apps.symfony/form).Form may deprecate APIs used by the package, requiring manual fixes.Form component and event system, even for Laravel projects.How can I help you explore Laravel packages today?