PHPackages                             ixnode/php-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. ixnode/php-json-schema-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

ixnode/php-json-schema-validator
================================

An easy-to-use PHP Json Schema Validator.

0.1.5(1y ago)1110↓100%1MITPHPPHP ^8.2

Since Dec 31Pushed 1y ago1 watchersCompare

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

READMEChangelog (6)Dependencies (12)Versions (7)Used By (1)

PHP Json Schema Validator
=========================

[](#php-json-schema-validator)

[![Release](https://camo.githubusercontent.com/6b0d31f08466922897ca43220cc557c9c45e8d1794385c053a933bab7c458c3a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f69786e6f64652f7068702d6a736f6e2d736368656d612d76616c696461746f72)](https://github.com/ixnode/php-json-schema-validator/releases)[![](https://camo.githubusercontent.com/7c3756b694b7e9b6453f17552e8440c33114b89ec14cbb5a4d0875fd6ed74515/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f69786e6f64652f7068702d6a736f6e2d736368656d612d76616c696461746f72)](https://github.com/ixnode/php-json-schema-validator/releases)[![](https://camo.githubusercontent.com/d22391695f54d600cfdcc8faffea117ea5a791a289212c53e9474a57365969a2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f69786e6f64652f7068702d6a736f6e2d736368656d612d76616c696461746f722e737667)](https://camo.githubusercontent.com/d22391695f54d600cfdcc8faffea117ea5a791a289212c53e9474a57365969a2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f69786e6f64652f7068702d6a736f6e2d736368656d612d76616c696461746f722e737667)[![PHP](https://camo.githubusercontent.com/9ffda6c94e9634fafbd5ff0f68f442ccb690a9b88c8613f79b9c2ec14f5e596b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d3737376262332e7376673f6c6f676f3d706870266c6f676f436f6c6f723d7768697465266c6162656c436f6c6f723d353535353535267374796c653d666c6174)](https://www.php.net/supported-versions.php)[![PHPStan](https://camo.githubusercontent.com/973bd3af16ac962a6eb7191062ceb018266116d863d18ee07b970e1d9b3e3c4f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d4c6576656c2532304d61782d627269676874677265656e2e7376673f7374796c653d666c6174)](https://phpstan.org/user-guide/rule-levels)[![PHPUnit](https://camo.githubusercontent.com/de101a446df383674178b80c404288664983cc6de751737d976d3df023942af9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f504850556e69742d556e697425323054657374732d3662396264322e7376673f7374796c653d666c6174)](https://phpunit.de)[![PHPCS](https://camo.githubusercontent.com/ab66c01daa05a9d45a542da43bd296d4f26384943f0ad0fc4c3f6b9916a2b62b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50485043532d50535231322d627269676874677265656e2e7376673f7374796c653d666c6174)](https://www.php-fig.org/psr/psr-12/)[![PHPMD](https://camo.githubusercontent.com/223a2afede2bd4bf4d524b7610277838a5d75504f7087fc6c36847b81a80ab43/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048504d442d414c4c2d3336346138332e7376673f7374796c653d666c6174)](https://github.com/phpmd/phpmd)[![Rector - Instant Upgrades and Automated Refactoring](https://camo.githubusercontent.com/9c119c037099401c8a61bd1ce556a58158eb09bfe452b2d132b94500e6368714/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f526563746f722d504850253230382e322d3733613136352e7376673f7374796c653d666c6174)](https://github.com/rectorphp/rector)[![LICENSE](https://camo.githubusercontent.com/bcf15e8c2c686c0a0e394f5f1c8ff34ab6e456254fd2ec2d183448ae94e7f378/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f69786e6f64652f7068702d6a736f6e2d736368656d612d76616c696461746f72)](https://github.com/ixnode/php-json-schema-validator/blob/master/LICENSE)

> An easy-to-use PHP Json Schema Validator on top of [opis/json-schema](https://github.com/opis/json-schema).

1. Usage
--------

[](#1-usage)

```
use Ixnode\PhpJsonSchemaValidator\Validator;
```

```
$data = '[1, 2, 3]';

$schema = [
    'type' => 'object'
];

$validator = new Validator(new Json($data), new Json($schema));

$valid = $validator->validate();
// (bool) true
```

2. Installation
---------------

[](#2-installation)

```
composer require ixnode/php-json-schema-validator
```

```
vendor/bin/php-json-schema-validator -V
```

```
php-json-schema-validator 0.1.0 (12-31-2022 15:51:08) - Björn Hempel
```

3. Library development
----------------------

[](#3-library-development)

```
git clone git@github.com:ixnode/php-json-schema-validator.git && cd php-json-schema-validator
```

```
composer install
```

```
composer test
```

4. License
----------

[](#4-license)

This tool is licensed under the MIT License - see the [LICENSE](/LICENSE) file for details

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance41

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Recently: every ~177 days

Total

6

Last Release

517d ago

PHP version history (2 changes)0.1.0PHP ^8.0

0.1.3PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![bjoern-hempel](https://avatars.githubusercontent.com/u/5531245?v=4)](https://github.com/bjoern-hempel "bjoern-hempel (11 commits)")

---

Tags

phpjsonschemavalidator

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ixnode-php-json-schema-validator/health.svg)

```
[![Health](https://phpackages.com/badges/ixnode-php-json-schema-validator/health.svg)](https://phpackages.com/packages/ixnode-php-json-schema-validator)
```

###  Alternatives

[opis/json-schema

Json Schema Validator for PHP

64236.9M184](/packages/opis-json-schema)[ergebnis/json-schema-validator

Provides a JSON schema validator, building on top of justinrainbow/json-schema.

3626.9M7](/packages/ergebnis-json-schema-validator)[geraintluff/jsv4

A (coercive) JSON Schema v4 Validator for PHP

115455.2k3](/packages/geraintluff-jsv4)[johnstevenson/json-works

Create, edit, query and validate json

272.5M6](/packages/johnstevenson-json-works)[evaisse/php-json-schema-generator

A JSON Schema Generator.

20298.5k1](/packages/evaisse-php-json-schema-generator)[dstotijn/yii2-json-schema-validator

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

1730.7k](/packages/dstotijn-yii2-json-schema-validator)

PHPackages © 2026

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