alexandre-fernandez/key-value-form-bundle
FormRequest, Request, or third-party packages like laravelcollective/html) could theoretically integrate with this bundle via Symfony’s standalone Form component or a wrapper layer.symfony/form or spatie/laravel-symfony-support).Request::all(), FormRequest, or packages like spatie/laravel-form-builder), but this bundle offers Symfony’s mature validation/transformation for complex key-value schemas.symfony/form) or a Laravel bridge (e.g., spatie/laravel-symfony-support). Feasible but adds complexity.FormFactory from symfony/form).FormRequest for validation, then map to the bundle’s structure.| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| Symfony Dependency | High | Evaluate spatie/laravel-symfony-support or isolate in a microservice. |
| Laravel Integration | Medium | Build a thin wrapper or use Symfony Form standalone. |
| Validation Overhead | Medium | Test edge cases (e.g., nested arrays, custom types). |
| Performance | Low | Benchmark against native Laravel solutions. |
| Maintenance | Medium | Monitor for Symfony updates breaking changes. |
laravelcollective/html or spatie/laravel-form-builder been ruled out?symfony/form (via Composer) or spatie/laravel-symfony-support.use Symfony\Component\Form\FormFactoryInterface;
$form = $formFactory->createBuilder('form', $data)->getForm();
settings->json) or use existing serialized fields.Schema::table('users', function (Blueprint $table) {
$table->json('dynamic_attributes')->nullable();
});
symfony/form is compatible with Laravel’s PHP version (e.g., Laravel 10 + PHP 8.1+).FormRequest if needed.spatie/laravel-translation-loader if needed.symfony/form (~10MB) and potential bridge packages.FormType classes).Request for lightweight cases.| Scenario | Impact | Mitigation |
|---|---|---|
| Symfony Form misconfiguration | Invalid data submission | Add Laravel middleware validation. |
| Database JSON parsing errors | Data corruption | Use strict JSON schema validation. |
| Bundle abandonment | Fork required | Maintain a Laravel-compatible fork. |
| PHP/Symfony version conflicts | Integration breaks | Pin versions in composer.json. |
How can I help you explore Laravel packages today?