Download the PHP package onlinesid/json-schema-provider without Composer
On this page you can find all versions of the php package onlinesid/json-schema-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download onlinesid/json-schema-provider
More information about onlinesid/json-schema-provider
Files in onlinesid/json-schema-provider
Download onlinesid/json-schema-provider
More information about onlinesid/json-schema-provider
Files in onlinesid/json-schema-provider
Vendor onlinesid
Package json-schema-provider
Short Description Json Schema Silex Service Provider
License MIT
Package json-schema-provider
Short Description Json Schema Silex Service Provider
License MIT
Please rate this library. Is it a good library?
Informations about the package json-schema-provider
json-schema-provider
Json Schema Silex Service Provider
and validator tool
A Silex Service Provider for validating JSON
data against a given Schema
.
Installation
Library
$ git clone https://github.com/onlinesid/json-schema-provider.git
Dependencies
Composer
(will use the Composer ClassLoader)
$ wget http://getcomposer.org/composer.phar
$ php composer.phar require onlinesid/json-schema-provider:dev-master
Usage
Registering the Service Provider
json_schema_dir
: where the json schema files are locatedjson_message_dir
: where the json files for custom error messages are locateddefault_json_message
: json file where default error messages are located, file must be in directoryjson_message_dir
Usage in controller
json-schema/booking.json
See json-schema for more details.
This is your json schema containing constraints/rules
json-message/booking.json
You can specify your own custom error messages.
json-message/default.json
You can specify global default error messages (e.g.: not per field but per constraint rule type)
Running the tests
$ phpunit
All versions of json-schema-provider with dependencies
PHP Build Version
Package Version
The package onlinesid/json-schema-provider contains the following files
Loading the files please wait ....