mirror of
https://github.com/justinrainbow/json-schema.git
synced 2025-04-03 14:02:41 +02:00
JSON Schema for PHP
Usage
$json = json_decode($input_json); $schema = json_decode($input_schema); $result = JsonSchema::validate($json, $schema);
if ($result->valid) { die('success!'); } else { die('fail...'); }
Languages
PHP
100%