# JSON Schema for PHP (justinrainbow/json-schema)

> Validate JSON structures against a JSON Schema in PHP

Source: https://talira.ai/catalog/json-schema-for-php-justinrainbow-json-schema-2e8v2bqg
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / validation / json schema](https://talira.ai/categories/libraries/validation/json-schema), [languages / php](https://talira.ai/categories/languages/php)
- Licence: MIT[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Supports: [JSON Schema](https://talira.ai/standards/json-schema.md)[^3]
- Backed by: [jsonrainbow](https://talira.ai/orgs/jsonrainbow.md)

justinrainbow/json-schema is a PHP library that validates JSON data against a JSON Schema, supporting schema drafts 3, 4, 6, 7 and 2019-09 (features of newer drafts may be missing), with its compliance for each draft measured by Bowtie. It's maintained by the jsonrainbow organisation.

## Links

- Website: https://jsonrainbow.github.io/docs/
- GitHub: https://github.com/jsonrainbow/json-schema
- Docs: https://jsonrainbow.github.io/docs/

## Problems it solves

- validate a JSON request body against a schema in PHP
- check that a JSON config file matches its JSON Schema in PHP
- JSON Schema draft 7 validation for a PHP API

## Features

- validates JSON against JSON Schema drafts 3, 4, 6, 7 and 2019-09
- per-draft compliance reported by Bowtie
- install with Composer

## Trust

Overall: 0.66 out of 1.
Signals: maintenance 1.00, adoption 0.71, momentum 0.39, community 0.87, backing 0.30, extensibility 0.00.

- last commit 2 days ago
- 105 commits in the last 90 days
- latest release 6.16.0 2 days ago
- 3.6k GitHub stars
- 147 contributors
- accepts sponsorship (Github)
- backed by jsonrainbow

## Alternatives

- [check-jsonschema](https://talira.ai/catalog/check-jsonschema-zskp1vjb.md): JSON Schema validation CLI and pre-commit hooks

## Sources

[^1]: https://github.com/jsonrainbow/json-schema/blob/main/LICENSE (checked 29 Nov 2026)
[^2]: https://github.com/jsonrainbow/json-schema/blob/main/composer.json (checked 29 Nov 2026)
[^3]: https://github.com/jsonrainbow/json-schema/blob/main/README.md (checked 29 Nov 2026)
