Download the PHP package v-ghost2000/json-schema without Composer
On this page you can find all versions of the php package v-ghost2000/json-schema. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download v-ghost2000/json-schema
More information about v-ghost2000/json-schema
Files in v-ghost2000/json-schema
Package json-schema
Short Description Json Schema Validator
License Apache-2.0
Homepage http://www.opis.io/json-schema
Informations about the package json-schema
Opis JSON Schema
Отличие от огигинального репозитория заключается в том, что сделана правка позволяющая модифицировать данные в объектах с помощью фильтров.
Пример:
Validate JSON documents
Opis JSON Schema is a PHP implementation for the JSON Schema standard (draft-07 and draft-06), that will help you validate all sorts of JSON documents, whether they are configuration files or a set of data sent to an RESTful API endpoint.
The library's key features:
- Fast validation (you can set maximum number of errors for a validation)
- Custom schema document loaders
- Support for if-then-else
- All string formats are supported
- Support for custom formats
- Support for custom media types
- Support for default value
- Support for custom variables using
$vars
keyword - Support for custom filters using
$filters
keyword - Advanced schema reuse using
$map
keyword - Support for json pointers (absolute and relative pointers)
- Support for URI templates
Documentation
The full documentation for this library can be found here. We provide documentation for both JSON Schema standard itself as well as for the library's own API.
License
Opis JSON Schema is licensed under the Apache License, Version 2.0.
Requirements
- PHP ^7.0
Installation
Opis JSON Schema is available on Packagist and it can be installed from a command line interface by using Composer.
Or you could directly reference it into your composer.json
file as a dependency