PHPackages                             grizz-it/json-schema - 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. grizz-it/json-schema

ActiveLibrary

grizz-it/json-schema
====================

JSON schema validator.

1.0.0(5y ago)1153↓100%1MITPHPPHP ^8.0

Since Feb 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/grizz-it/json-schema)[ Packagist](https://packagist.org/packages/grizz-it/json-schema)[ RSS](/packages/grizz-it-json-schema/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (1)

[![Build Status](https://camo.githubusercontent.com/986c91befb4b81d11f9ccb7ef5e26e9f31e9f1630d7eb6af7ce33127935761ec/68747470733a2f2f7472617669732d63692e636f6d2f6772697a7a2d69742f6a736f6e2d736368656d612e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/grizz-it/json-schema)

GrizzIT JSON Schema
===================

[](#grizzit-json-schema)

This package contains a [JSON schema](https://json-schema.org/) validator library for PHP. It support Draft 07 and 06.

To get a grip on JSON schema's, what they are and how they work, please see the manual of [json-schema-org](https://json-schema.org/learn/).

The package generates a reusable validation object, which can be used to verify data against.

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

[](#installation)

To install the package run the following command:

```
composer require grizz-it/json-schema

```

Usage
-----

[](#usage)

Before a validation object can be created, the factory for the validators needs to be instantiated. This can be done by using the following snippet:

```
