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

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

cindyullmann/json-schema
========================

Json Schema Validator for PHP

1.0.1(1y ago)054Apache-2.0PHPPHP ^7.4 || ^8.0 || ^8.1

Since May 29Pushed 1y agoCompare

[ Source](https://github.com/cindyullmann/json-schema)[ Packagist](https://packagist.org/packages/cindyullmann/json-schema)[ Docs](https://opis.io/json-schema)[ RSS](/packages/cindyullmann-json-schema/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

Opis JSON Schema
================

[](#opis-json-schema)

[![Tests](https://github.com/opis/json-schema/workflows/Tests/badge.svg)](https://github.com/opis/json-schema/actions)[![Packagist Version](https://camo.githubusercontent.com/a471cfa420ef004f644a0cd64d0b93efc8508f0ef14bef0375f219f59ffe9566/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f7069732f6a736f6e2d736368656d613f6c6162656c3d56657273696f6e)](https://packagist.org/packages/opis/json-schema)[![Packagist Downloads](https://camo.githubusercontent.com/2279fd93750f5342d697b2ac89db33893376042644c0671873e229d45633a224/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f7069732f6a736f6e2d736368656d613f6c6162656c3d446f776e6c6f616473)](https://packagist.org/packages/opis/json-schema)[![Packagist License](https://camo.githubusercontent.com/5780cbe1d641d3de711c3a47789acbf7c2d2f28467b482f02adff2ae0d1c611b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f7069732f6a736f6e2d736368656d613f636f6c6f723d7465616c266c6162656c3d4c6963656e7365)](https://packagist.org/packages/opis/json-schema)

Validate JSON documents
-----------------------

[](#validate-json-documents)

**Opis JSON Schema** is a PHP implementation for the [JSON Schema](http://json-schema.org/ "JSON Schema") standard (draft-2020-12, draft-2019-09, draft-07 and draft-06), that will help you validate all sorts of JSON documents, whether they are configuration files or a set of data sent to a RESTful API endpoint.

**The library's key features:**

- Supports all keywords from all drafts (draft-2020-12 down to draft-06)
- Support for custom PHP filters using [`$filters` keyword](https://docs.opis.io/json-schema/2.x/filters.html)
- Advanced schema reuse using [`$map` keyword](https://docs.opis.io/json-schema/2.x/mappers.html)
- Intuitive schema composition using [slots](https://docs.opis.io/json-schema/2.x/slots.html)
- Support for absolute &amp; relative [json pointers](https://docs.opis.io/json-schema/2.x/pointers.html)
- Support for [URI templates](https://docs.opis.io/json-schema/2.x/uri-template.html)
- Support for [`$data` keyword](https://docs.opis.io/json-schema/2.x/data-keyword.html)
- Support for [casting](https://docs.opis.io/json-schema/2.x/pragma.html#cast)
- Support for custom [formats](https://docs.opis.io/json-schema/2.x/php-format.html) and [media types](https://docs.opis.io/json-schema/2.x/php-media-type.html)

### Documentation

[](#documentation)

The full documentation for this library can be found [here](https://opis.io/json-schema). We provide documentation for both [JSON Schema](http://json-schema.org/ "JSON Schema") standard itself as well as for the library's own API.

### License

[](#license)

**Opis JSON Schema** is licensed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0 "Apache License").

### Requirements

[](#requirements)

- PHP ^7.4 || ^8.0 || ^8.1

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

[](#installation)

**Opis JSON Schema** is available on [Packagist](https://packagist.org/packages/opis/json-schema "Packagist") and it can be installed from a command line interface by using [Composer](https://getcomposer.org "Composer").

```
composer require opis/json-schema
```

Or you could directly reference it into your `composer.json` file as a dependency

```
{
    "require": {
        "opis/json-schema": "^2.2"
    }
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75.4% 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 ~0 days

Total

2

Last Release

711d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e22ce0942fe5c43b0f312dea5f85f727a1ccec47e24fbd77d483b568876e1da1?d=identicon)[cindy.ullmann](/maintainers/cindy.ullmann)

---

Top Contributors

[![sorinsarca](https://avatars.githubusercontent.com/u/3427195?v=4)](https://github.com/sorinsarca "sorinsarca (150 commits)")[![msarca](https://avatars.githubusercontent.com/u/5808737?v=4)](https://github.com/msarca "msarca (21 commits)")[![KodyWiremane](https://avatars.githubusercontent.com/u/29410911?v=4)](https://github.com/KodyWiremane "KodyWiremane (9 commits)")[![hkarlstrom](https://avatars.githubusercontent.com/u/793063?v=4)](https://github.com/hkarlstrom "hkarlstrom (3 commits)")[![cindyullmann](https://avatars.githubusercontent.com/u/56798094?v=4)](https://github.com/cindyullmann "cindyullmann (3 commits)")[![MaSpeng](https://avatars.githubusercontent.com/u/18685557?v=4)](https://github.com/MaSpeng "MaSpeng (3 commits)")[![liborm85](https://avatars.githubusercontent.com/u/1298652?v=4)](https://github.com/liborm85 "liborm85 (3 commits)")[![Tagliatti](https://avatars.githubusercontent.com/u/4907036?v=4)](https://github.com/Tagliatti "Tagliatti (1 commits)")[![atalargo](https://avatars.githubusercontent.com/u/230216?v=4)](https://github.com/atalargo "atalargo (1 commits)")[![Clivern](https://avatars.githubusercontent.com/u/1634427?v=4)](https://github.com/Clivern "Clivern (1 commits)")[![Ed-leRoux](https://avatars.githubusercontent.com/u/10370397?v=4)](https://github.com/Ed-leRoux "Ed-leRoux (1 commits)")[![nickdnk](https://avatars.githubusercontent.com/u/8411314?v=4)](https://github.com/nickdnk "nickdnk (1 commits)")[![niconoe-](https://avatars.githubusercontent.com/u/9560327?v=4)](https://github.com/niconoe- "niconoe- (1 commits)")[![1ma](https://avatars.githubusercontent.com/u/1456708?v=4)](https://github.com/1ma "1ma (1 commits)")

---

Tags

jsonschemavalidatorvalidationjson-schema

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cindyullmann-json-schema/health.svg)

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

###  Alternatives

[opis/json-schema

Json Schema Validator for PHP

64236.9M185](/packages/opis-json-schema)[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)
