PHPackages                             ulrack/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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. ulrack/json-schema

Abandoned → [grizz-it/json-schema](/?search=grizz-it%2Fjson-schema)ArchivedLibrary[Validation &amp; Sanitization](/categories/validation)

ulrack/json-schema
==================

JSON schema validator for Ulrack.

1.0.4(6y ago)33151MITPHPPHP ^7.2

Since Aug 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ulrack/json-schema)[ Packagist](https://packagist.org/packages/ulrack/json-schema)[ RSS](/packages/ulrack-json-schema/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (5)Dependencies (5)Versions (6)Used By (0)

DEPRECATION NOTICE: this package has been moved and improved at [grizz-it/json-schema](https://github.com/grizz-it/json-schema)
===============================================================================================================================

[](#deprecation-notice-this-package-has-been-moved-and-improved-at-grizz-itjson-schema)

[![Build Status](https://camo.githubusercontent.com/8b4b578a6b244d337430881e825ccf9d1143bf310ac34fc1748d2b5745edb491/68747470733a2f2f7472617669732d63692e636f6d2f756c7261636b2f6a736f6e2d736368656d612e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/ulrack/json-schema)

Ulrack JSON Schema
==================

[](#ulrack-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 ulrack/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:

```
