php-extended/php-json-schema-object

A library that implements the php-extended/php-json-schema-interface library

7.0.6 2024-07-31 13:42 UTC

This package is auto-updated.

Last update: 2024-10-31 00:23:41 UTC


README

A library that implements the php-extended/php-json-schema-interface interface library.

coverage build status

Installation

The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.

  • Download composer.phar from their website.
  • Then run the following command to install this library as dependency :
  • php composer.phar php-extended/php-json-schema-object ^7

Basic Usage

This library may be used the following way :

use PhpExtended\JsonSchema\JsonSchemaProvider;

$provider = new JsonSchemaProvider();

$schema = $provider->provideFromFile('/path/to/file-schema.json');
// $schema is \PhpExtended\JsonSchema\JsonSchema

License

MIT (See license file).