mirror of
https://github.com/justinrainbow/json-schema.git
synced 2025-03-18 21:29:46 +01:00
JSON Schema for PHP
Usage
<?php
$json = json_decode($input_json);
$schema = json_decode($input_schema);
$result = JsonSchema::validate($json, $schema);
if ($result->valid) {
die('success!');
}
else {
die('fail...');
}
Running the tests
$ git submodule update --init
$ phpunit
Languages
PHP
100%