destro/json-schema-form-bundle
FormType definitions.Schema constraint) ensures consistent validation between frontend (e.g., React/Vue) and backend, reducing duplication and improving data integrity.FormFactory, Validator, and DependencyInjection. Minimal boilerplate for basic use cases.SchemaType behavior via events or custom FormType extensions). Requires PHP templating (Twig) for rendering.SchemaType recompiles on every request).ValidatorInterface extensions (e.g., Callback constraints).SchemaType behavior).Symfonycasts/VerifyEmailBundle)?ChoiceType with a custom component)?Callback constraints)?api-platform/core, nelmio/api-doc-bundle) that offer similar functionality with better maturity?FormType at a time, using feature flags to toggle between old and new forms.// Old: Manual FormType
$form = $formFactory->create(UserType::class);
// New: Schema-driven
$form = $formFactory->create(SchemaType::class, $user, [
'data_schema' => $userSchema,
'constraints' => [new Schema($userSchema)],
]);
zod or yup).UniqueEntity).errors and schema in JSON:API format).Validator, Form) must be present.EntityType auto-mapping). Manual mapping required for data_class.SchemaType for custom form types (e.g., MarkdownType).cache component).FormType definitions for dynamic forms.ajv toHow can I help you explore Laravel packages today?