Skip to content

Clone of limenius/liform. Symfony json schema form is a library for serializing Symfony Forms into JSON schema.

License

Notifications You must be signed in to change notification settings

octava/symfony-json-schema-form

Repository files navigation

Symfony JSON Form

It generates a JSON schema representation, that serves as documentation and can be used to validate your data and, if you want, to generate forms using a generator.

It can be used along with liform-react or json-editor, or any other form generator based on json-schema.

Installation

  1. Download the Bundle
composer require octava/symfony-json-schema-form
  1. Enable the Bundle

Usage

Serializing a form into JSON Schema:

$form = $this->createForm(CarType::class, $car, ['csrf_protection' => false]);
$schema = json_encode($this->get('sjsfom')->transform($form));

About

Clone of limenius/liform. Symfony json schema form is a library for serializing Symfony Forms into JSON schema.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages