PHPackages                             destro/json-schema-form-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. destro/json-schema-form-bundle

ActiveSymfony-bundle

destro/json-schema-form-bundle
==============================

Create Symfony forms from JSON schema

1.0.5(4y ago)02MITPHPPHP ^7.1

Since Dec 31Pushed 4y agoCompare

[ Source](https://github.com/deStrO/json-schema-form-bundle)[ Packagist](https://packagist.org/packages/destro/json-schema-form-bundle)[ RSS](/packages/destro-json-schema-form-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (7)Used By (0)

JsonSchemaFormBundle
====================

[](#jsonschemaformbundle)

Creates a Symfony form from a [JSON schema](https://json-schema.org).

Installation:
-------------

[](#installation)

With [Composer](http://packagist.org):

```
composer require cyve/json-schema-form-bundle
```

Usage
-----

[](#usage)

```
use Cyve\JsonSchemaFormBundle\Form\Type\SchemaType;
use Cyve\JsonSchemaFormBundle\Validator\Constraint\Schema;

$json = get('form.factory')->create(SchemaType::class, $subject, ['data_schema' => $schema, 'constraints' => [new Schema($schema)]]);
```

The form option `data_schema` MUST be an `object` representing a JSON schema.

Documentation
-------------

[](#documentation)

### Form generation

[](#form-generation)

JSON schema propertySymfony FormTypeForm options`type: "*"` and `enum: [*]``ChoiceType``choices` is set with the content of `enum``type: "array"``CollectionType``allow_add`, `allow_delete` and `delete_empty` are set to `true`. `entry_type` and `entry_options` are resolved from the `items` sub-schema`type: "object"``SchemaType``data_schema` is set with the object sub-schema`type: "integer"``IntegerType``type: "number"``NumberType``type: "boolean"``CheckboxType``type: "string"` and `format: "date-time"``DateTimeType``input_format` is set to `"c"` ([ISO 8601](https://en.wikipedia.org/wiki/ISO_8601))`type: "string"` and `format: "date"``DateType``input_format` is set to `"Y-m-d"``type: "string"` and `format: "time"``TimeType``input_format` is set to `"H:i:s"``type: "string"` and `format: "email"``EmailType``type: "string"` and `format: "uri"``UrlType``type: "null"``null`The form option `label` is set with JSON property `title` if defined
The form option `help` is set with JSON property `description` if defined
The form option `empty_data` is set with JSON property `default` if defined

### Validation

[](#validation)

To validate the form subject against the JSON schema, add the form option `'constraints' => [new Cyve\JsonSchemaFormBundle\Validator\Constraint\Schema($schema)]` to the root form. The validator uses `propertyPath` to display the violation messages on the proper fields.
The JSON schema validation is made using [justinrainbow/json-schema](http://packagist.org/packages/justinrainbow/json-schema).
See the [JSON schema specification](https://json-schema.org/draft/2019-09/json-schema-core.html)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~121 days

Recently: every ~152 days

Total

6

Last Release

1722d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f43a20141582f3ddbcddee74b91b869abb22900eb2ab9ffc26247c707f1ec1d?d=identicon)[julien.pardons](/maintainers/julien.pardons)

---

Top Contributors

[![kurtjunker](https://avatars.githubusercontent.com/u/35800204?v=4)](https://github.com/kurtjunker "kurtjunker (4 commits)")[![deStrO](https://avatars.githubusercontent.com/u/519112?v=4)](https://github.com/deStrO "deStrO (2 commits)")[![JulienCabanes](https://avatars.githubusercontent.com/u/3443052?v=4)](https://github.com/JulienCabanes "JulienCabanes (2 commits)")[![kjunker](https://avatars.githubusercontent.com/u/47505814?v=4)](https://github.com/kjunker "kjunker (1 commits)")[![vansari](https://avatars.githubusercontent.com/u/18286899?v=4)](https://github.com/vansari "vansari (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/destro-json-schema-form-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/destro-json-schema-form-bundle/health.svg)](https://phpackages.com/packages/destro-json-schema-form-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
