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

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

cline/json-schema
=================

Immutable JSON Schema implementation with support for drafts 2020-12, 2019-09, draft-07, draft-06, and draft-05

2.0.3(5mo ago)01.2kMITPHPPHP ^8.5.0CI passing

Since Mar 4Pushed 5mo agoCompare

[ Source](https://github.com/faustbrian/json-schema)[ Packagist](https://packagist.org/packages/cline/json-schema)[ RSS](/packages/cline-json-schema/feed)WikiDiscussions 2.x Synced 1w ago

READMEChangelog (1)Dependencies (14)Versions (7)Used By (0)

[![GitHub Workflow Status](https://github.com/faustbrian/json-schema/actions/workflows/quality-assurance.yaml/badge.svg)](https://github.com/faustbrian/json-schema/actions)[![Latest Version on Packagist](https://camo.githubusercontent.com/08f83f6057e0ff277a1428ea76d6a16cae601c8627ac4dc972913c0ee8c23800/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c696e652f6a736f6e2d736368656d612e737667)](https://packagist.org/packages/cline/json-schema)[![Software License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/f3e5c428078579b473dfc7fd4e9276e4e765e95197bc1e11f0520e67a657f1fa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c696e652f6a736f6e2d736368656d612e737667)](https://packagist.org/packages/cline/json-schema)

JSON Schema Compliance
----------------------

[](#json-schema-compliance)

[![Draft 04](https://github.com/faustbrian/json-schema/actions/workflows/draft-04.yml/badge.svg)](https://github.com/faustbrian/json-schema/actions/workflows/draft-04.yml)[![Draft 06](https://github.com/faustbrian/json-schema/actions/workflows/draft-06.yml/badge.svg)](https://github.com/faustbrian/json-schema/actions/workflows/draft-06.yml)[![Draft 07](https://github.com/faustbrian/json-schema/actions/workflows/draft-07.yml/badge.svg)](https://github.com/faustbrian/json-schema/actions/workflows/draft-07.yml)[![Draft 2019-09](https://github.com/faustbrian/json-schema/actions/workflows/draft-2019-09.yml/badge.svg)](https://github.com/faustbrian/json-schema/actions/workflows/draft-2019-09.yml)[![Draft 2020-12](https://github.com/faustbrian/json-schema/actions/workflows/draft-2020-12.yml/badge.svg)](https://github.com/faustbrian/json-schema/actions/workflows/draft-2020-12.yml)

---

JSON Schema Validator
=====================

[](#json-schema-validator)

A fast, spec-compliant PHP implementation of JSON Schema validation supporting Draft 04, 06, 07, 2019-09, and 2020-12.

Requirements
------------

[](#requirements)

> **Requires [PHP 8.4+](https://php.net/releases/)**

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

[](#installation)

```
composer require cline/json-schema
```

Documentation
-------------

[](#documentation)

- **[Getting Started](https://docs.cline.sh/json-schema/getting-started)** - Installation and basic usage
- **[Validation Guide](https://docs.cline.sh/json-schema/validation)** - Advanced validation techniques
- **[Schema Builder](https://docs.cline.sh/json-schema/schema-builder)** - Programmatic schema construction
- **[API Reference](https://docs.cline.sh/json-schema/api-reference)** - Complete API documentation

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please use the [GitHub security reporting form](https://github.com/faustbrian/json-schema/security) rather than the issue queue.

Credits
-------

[](#credits)

- [Brian Faust](https://github.com/faustbrian)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License. Please see [License File](LICENSE.md) for more information.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance73

Regular maintenance activity

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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

Recently: every ~3 days

Total

6

Last Release

151d ago

Major Versions

1.0.0 → 2.0.02026-03-04

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22145591?v=4)[Brian Faust](/maintainers/faustbrian)[@faustbrian](https://github.com/faustbrian)

---

Top Contributors

[![faustbrian](https://avatars.githubusercontent.com/u/22145591?v=4)](https://github.com/faustbrian "faustbrian (9 commits)")

---

Tags

phpjsonlaravelschemavalidationjson-schema

### Embed Badge

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

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

###  Alternatives

[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

818355.4k3](/packages/defstudio-telegraph)[spatie/laravel-health

Monitor the health of a Laravel application

88212.7M188](/packages/spatie-laravel-health)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

46273.9k](/packages/harris21-laravel-fuse)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[nativephp/mobile

NativePHP for Mobile

1.1k102.1k144](/packages/nativephp-mobile)

PHPackages © 2026

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