PHPackages                             ropi/json-schema-generator - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. ropi/json-schema-generator

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

ropi/json-schema-generator
==========================

JSON Schema Generator

v0.2.1(4y ago)075MITPHPPHP &gt;=8.1.0

Since Aug 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ro-pi/json-schema-generator)[ Packagist](https://packagist.org/packages/ropi/json-schema-generator)[ Docs](https://www.robertpiplica.de)[ RSS](/packages/ropi-json-schema-generator/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

A JSON Schema generator for PHP
===============================

[](#a-json-schema-generator-for-php)

This library is a PHP based implementation for generating [JSON Schemas](https://json-schema.org/), which can be easily extended with your own keywords and drafts. The library is most suitable for the case when you have many instances/datasets and a schema must be generated based on these instances/datasets.

The following drafts are natively supported:

- [Draft 2020-12](https://json-schema.org/draft/2020-12/json-schema-validation.html)

### Requirements

[](#requirements)

- PHP ^8.1

Installation
------------

[](#installation)

The library can be installed from a command line interface by using [composer](https://getcomposer.org/).

```
composer require ropi/json-schema-generator

```

Basic usage
-----------

[](#basic-usage)

```
