PHPackages                             cyve/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. [Templating &amp; Views](/categories/templating)
4. /
5. cyve/json-schema-form-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

cyve/json-schema-form-bundle
============================

Create Symfony forms from JSON schema

1.0.5(2y ago)71.2k8[2 issues](https://github.com/cyve/json-schema-form-bundle/issues)[1 PRs](https://github.com/cyve/json-schema-form-bundle/pulls)MITPHPPHP ^7.1CI failing

Since Dec 31Pushed 2y ago3 watchersCompare

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

READMEChangelogDependencies (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

30

—

LowBetter than 64% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community17

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 ~320 days

Recently: every ~400 days

Total

6

Last Release

732d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b21e3a5729c9b41d7073f00fff6b65cbfd86baa158ff415a2ee71c0da22af5b1?d=identicon)[cyve](/maintainers/cyve)

---

Top Contributors

[![kurtjunker](https://avatars.githubusercontent.com/u/35800204?v=4)](https://github.com/kurtjunker "kurtjunker (4 commits)")[![cyve](https://avatars.githubusercontent.com/u/3588995?v=4)](https://github.com/cyve "cyve (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/cyve-json-schema-form-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/cyve-json-schema-form-bundle/health.svg)](https://phpackages.com/packages/cyve-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)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19280.3k3](/packages/symfony-ux-cropperjs)

PHPackages © 2026

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