PHPackages                             dstotijn/yii2-json-schema-validator - 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. dstotijn/yii2-json-schema-validator

ActiveYii2-extension[Validation &amp; Sanitization](/categories/validation)

dstotijn/yii2-json-schema-validator
===================================

A Yii2 extension that provides a validator class for JSON Schema validation.

1.0.0(9y ago)1730.7k8[1 issues](https://github.com/dstotijn/yii2-json-schema-validator/issues)MITPHP

Since Jul 13Pushed 9y agoCompare

[ Source](https://github.com/dstotijn/yii2-json-schema-validator)[ Packagist](https://packagist.org/packages/dstotijn/yii2-json-schema-validator)[ RSS](/packages/dstotijn-yii2-json-schema-validator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

Yii 2 JSON Schema Validator
===========================

[](#yii-2-json-schema-validator)

[![Build Status](https://camo.githubusercontent.com/0cc9497fcc42a0c89d5029e198f6c8c6259480ff2d210f4d256e675d064e978f/68747470733a2f2f7472617669732d63692e6f72672f6473746f74696a6e2f796969322d6a736f6e2d736368656d612d76616c696461746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dstotijn/yii2-json-schema-validator)[![Code Coverage](https://camo.githubusercontent.com/7b0f19152e80fc7f9f4166d4134e8481b84e9a82373bea1308805c260e8c57e9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6473746f74696a6e2f796969322d6a736f6e2d736368656d612d76616c696461746f722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dstotijn/yii2-json-schema-validator/?branch=master)

A Yii 2 extension that provides a validation class that wraps [JSON Schema for PHP](https://github.com/justinrainbow/json-schema).

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

[](#installation)

```
$ composer require dstotijn/yii2-json-schema-validator

```

Usage
-----

[](#usage)

Model class example:

```
