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
Description
No description provided
Readme MIT 3.6 MiB
Languages
PHP 100%