Igor Wiedler 8acbb48899 Merge remote-tracking branch 'upstream/master'
* upstream/master:
  Adding a LICENSE file
  Adding travis ci config
  fixed README, fixed required/optional (optional is default)
  added composer.json

Conflicts:
	README.md
	composer.json
	libs/JsonSchema.php
	libs/JsonSchemaUndefined.php
2011-12-10 12:24:18 +01:00
2011-09-30 19:01:38 +02:00
2011-12-09 13:52:05 -07:00
2011-12-09 14:47:39 -07:00
2011-12-10 12:22:52 +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
Description
No description provided
Readme MIT 3.6 MiB
Languages
PHP 100%