opis/json-schema
opis/json-schema has 665 GitHub stars and 72 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-15 22:58 UTC. Last push 2026-11-11.
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
JSON Schema validator for PHP
Developer ToolsREADME.md
OriginalOpis JSON Schema
Validate JSON documents
Opis JSON Schema is a PHP implementation for the 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 errors inside schema using
$errorkeyword - Support for custom PHP filters using
$filterskeyword - Advanced schema reuse using
$mapkeyword - Intuitive schema composition using slots
- Support for absolute & relative json pointers
- Support for URI templates
- Support for
$datakeyword - Support for casting
- Support for custom formats and media types
Documentation
The full documentation for this library can be found here. We provide documentation for both JSON Schema standard itself as well as for the library's own API.
License
Opis JSON Schema is licensed under the Apache License, Version 2.0.
Requirements
- PHP ^7.4 || ^8.0
Installation
Opis JSON Schema is available on Packagist, and it can be installed from a command line interface by using 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.6"
}
}