opis/json-schema

Json Schema Validator for PHP

Package info

github.com/opis/json-schema

Homepage

pkg:composer/opis/json-schema

Statistics

Installs: 42 666 441

Dependents: 224

Suggesters: 6

Stars: 647

Open Issues: 13

2.6.0 2025-10-17 12:46 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Apache-2.0 8458763e0dd0b6baa310e04f1829fc73da4e8c8a

  • Sorin Sarca <sarca_sorin.woop@hotmail.com>
  • Marius Sarca <marius.sarca.woop@gmail.com>

jsonschemavalidatorvalidationjson-schema


README

👁 Tests
👁 Packagist Version
👁 Packagist Downloads
👁 Packagist License

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:

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"
 }
}