sulu/form-bundle
SuluFormBundle adds dynamic form creation to Sulu Admin. Content managers build and arrange fields in a grid, configure email notifications, and power contact/sweepstake forms. Built on the Symfony Form Component with theming support.
sulu_form.form_handler). Laravel’s IoC would require adapters or facades./form/{id}). Laravel’s resource routing or custom routes would need mapping.DisabledCsrfTokenManager conflicts with Laravel’s built-in CSRF. Custom middleware would be needed.FormHandler) to Laravel’s container.form, form_field, form_submission tables). Laravel’s Eloquent or Query Builder would need migration scripts to adapt schemas.FormType, and EventDispatcher require rewrites or polyfills.MediaManagerInterface. Laravel’s Spatie Media Library or VentureCraft would need integration.FormType with Laravel’s Form Requests or Livewire/Alpine.js for dynamic frontend forms.MediaManagerInterface with Spatie Media Library or VentureCraft Revise.| Phase | Action | Tools/Dependencies | Risk |
|---|---|---|---|
| Assessment | Audit current form usage; identify Sulu-specific dependencies. | Postman (API testing), Laravel IDE Helper | Low |
| Abstraction | Create adapter layer for Symfony services (e.g., SuluFormHandler). |
Laravel Service Providers, Symfony Polyfills | Medium |
| Frontend | Replace Twig templates with Blade/Inertia; migrate JS (e.g., Dropzone). | Alpine.js, Laravel Mix/Vite | Medium |
| Backend | Rewrite form submission logic to use Laravel’s Form Requests. | Laravel Validation, API Resources | High (business logic) |
| Database | Decide on schema strategy (migrate, hybrid, or proxy). | Doctrine DBAL, Eloquent | High (data integrity) |
| Admin UI | Option 1: Keep Sulu admin (API proxy). Option 2: Build Laravel admin. | Filament, Nova, or custom Blade admin | High (UI complexity) |
| Testing | Write Pest/Feature tests for form submission, validation, and storage. | Laravel Testing, Mockery | Medium |
| Deployment | Containerize Sulu + Laravel (Docker) or split into microservices. | Docker, Kubernetes | Medium |
EventDispatcher and HttpClient.FormType with Laravel equivalents.platform-check or GitHub Actions to auto-test updates.How can I help you explore Laravel packages today?