talira

JSON Schema for PHP (justinrainbow/json-schema)

Validate JSON structures against a JSON Schema in PHP

open sourceMITfree

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.

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

Alternatives

The same job

These do what JSON Schema for PHP (justinrainbow/json-schema) does.

  1. check-jsonschema JSON Schema validation CLI and pre-commit hooks

Compare JSON Schema for PHP (justinrainbow/json-schema) with the top 3