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(3mo ago)01.2kMITPHPPHP ^8.5.0CI passing

Since Mar 4Pushed 3mo 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 today

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

43

—

FairBetter than 89% of packages

Maintenance80

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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

106d 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

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.3k3](/packages/defstudio-telegraph)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M164](/packages/spatie-laravel-health)[harris21/laravel-fuse

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

44855.7k](/packages/harris21-laravel-fuse)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M193](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)

PHPackages © 2026

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