Download the PHP package openregion/php-json-schema-generator without Composer
On this page you can find all versions of the php package openregion/php-json-schema-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download openregion/php-json-schema-generator
More information about openregion/php-json-schema-generator
Files in openregion/php-json-schema-generator
Package php-json-schema-generator
Short Description A JSON Schema Generator.
License MIT
Homepage https://github.com/openregion/php-json-schema-generator
Informations about the package php-json-schema-generator
PHP JSON Schema Generator
Forked from evaisse/php-json-schema-generator
Originally forked from solvire/php-json-schema-generator
Introduction to json schema below (and tools) :
- http://json-schema.org — reference
- http://www.jsonschemavalidator.net - validator (not 100% valid)
- https://www.openapis.org - use json schema to define REST API docs
- https://jsonschema.net/#/editor - convenient editor for json schema
To validate your structure against a given schema, you can use :
Quickstart
Install using composer
Most simple case
Default configuration values
Advanced usage
For more advanced usage, see tests/JSONSchemaGenerator/Tests/GeneratorTest.php
Testing
just run phpunit through
debug with
Roadmap
-
Adjust schema comparison using re-ordering of properties to compare two schema against their semantic values instead of just comparing their JSON form. For example
{ a: 1, b: 2 }
, and{ b: 2, a: 1 }
should result in the same schema. - provide an option to allow null values in most fields
("type": ["string", "null"]}
All versions of php-json-schema-generator with dependencies
ext-json Version *