jsonrainbow/json-schema

JSON Schema for PHP

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 16 minutes ago
Type:Library / SDKCategory(s):API Development ToolsDeveloper Tools
Added to GitGenius on September 19th, 2026
Created on March 16th, 2011
Open Issues & Pull Requests: 25 (+0)
GitHub issues: Enabled
Number of forks: 374
Total Stargazers: 3,632 (+0)
Total Subscribers: 45 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.7 hours
Mean response time: 42.5 days
90th percentile: 81.5 days
Tracked items: 85

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 15
New in 7 days: 3
Closed in 7 days: 0
Avg open age: 477 days
Stale 30+ days: 8
Stale 90+ days: 5

Recent activity

Opened in 7 days: 2
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • PRs Welcome (20)
  • Bug (18)
  • Awaiting feedback (14)
  • Good first issue (9)
  • draft-2019 (8)
  • Enhancement (7)
  • Triage (7)
  • draft-06 (7)

Detailed Description

JSON Schema for PHP is a PHP library that validates JSON structures against schemas conforming to multiple JSON Schema specification drafts.

The tool solves the problem of ensuring JSON data conforms to expected structure and type requirements before processing it in PHP applications. It implements validation logic for Draft-3, Draft-4, Draft-6, Draft-7, and Draft 2019-09 specifications, allowing developers to define schemas and check incoming data against them. The validator supports several modes of operation including type coercion to convert strings and booleans to expected types, automatic application of default values from schemas, and strict validation with early type coercion options.

The library suits PHP projects that need to validate JSON input from HTTP requests or other sources. It is particularly useful when you want to automatically cast incoming string data to the correct types or apply schema-defined defaults during validation. The tool offers configuration flags to customize validation behavior, such as disabling format constraint checks, validating the schema itself, or throwing exceptions on validation failure. Developers should be aware that not all features of newer specification drafts may be fully supported, and the README recommends checking the Bowtie compliance report for the current state of draft implementations.

The project maintains compliance badges for each supported draft specification. Development activity shows ongoing attention to specification compliance across multiple JSON Schema versions.