# jsonrainbow/json-schema

JSON Schema for PHP

Repository: https://github.com/jsonrainbow/json-schema
Canonical: https://ross.abutalabs.com/products/json-schema
Homepage: https://jsonrainbow.github.io/docs/
Language: PHP
License: MIT
License Family: permissive
Topics: json, schema
Last push: 2026-08-21T11:30:43+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 98, longevity 100
- inputs: {"age_days": 5650, "days_push": 12, "days_rel": 12, "gap_med": 10.5, "n_releases_24m": 29}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3629, forks 373 (observed 2026-08-28T04:08:12.009259+00:00)

## What it is
A PHP library for validating JSON data structures against JSON Schema, supporting Draft-3, Draft-4, Draft-6, Draft-7, and Draft 2019-09. It provides a simple Validator API with error reporting and type coercion, and is compliance-tested via the Bowtie suite.

## Use cases
- validate  payloads against a schema in php
- validate api request bodies with  schema
- check  config files conform to a schema
- validate  documents against draft-7 schemas
- coerce types when validating http input in php

## When to choose
- you need standards-compliant JSON Schema validation in a PHP project
- you need support for multiple JSON Schema drafts including 2019-09
- you want a Composer-installable validator that integrates with Laravel or Symfony

## When to avoid
- you need the latest JSON Schema drafts (2020-12 or newer)
- you are not working in PHP
- you need full feature coverage of newer drafts, which may be incomplete

## Facets
- artifact type: library
- maturity: active
- function: form-handling, serialization
- domain: developer-tools, web-development, apis
- platform: php
- tags: -schema, schema-validation, draft-2019-09, composer

## Member repositories
- jsonrainbow/json-schema (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:12.009259+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:31:54.029735+00:00, confidence not recorded.
  - readme: https://github.com/jsonrainbow/json-schema (fetched 2026-08-28T04:08:12.009259+00:00, sha 2834b87f8ffd)
  - homepage: https://jsonrainbow.github.io/docs/ (fetched 2026-08-29T09:26:23.791671+00:00, sha 7645550f0d09)
- Data as of 2026-08-30T08:39:29.467469+00:00.
