Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
J

json-schema

> 编程语言
Open source

JSON Schema validator for PHP

654 stars0 likes1 views
WebsiteGitHub

About

JSON Schema validator for PHP

Opis 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 $error keyword
  • Support for custom PHP filters using $filters keyword
  • Advanced schema reuse using $map keyword
  • Intuitive schema composition using slots
  • Support for absolute & relative json pointers
  • Support for URI templates
  • Support for $data keyword
  • 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.

bash
composer require opis/json-schema

Or you could directly reference it into your composer.json file as a dependency

json
{
    "require": {
        "opis/json-schema": "^2.6"
    }
}

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPjson-pointerjson-schemaopisphp

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言