Download the PHP package arfeen/json-schema-validator without Composer
On this page you can find all versions of the php package arfeen/json-schema-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download arfeen/json-schema-validator
More information about arfeen/json-schema-validator
Files in arfeen/json-schema-validator
Download arfeen/json-schema-validator
More information about arfeen/json-schema-validator
Files in arfeen/json-schema-validator
Vendor arfeen
Package json-schema-validator
Short Description Validates JSON using predefined schema based on data types and constraints.
License
Package json-schema-validator
Short Description Validates JSON using predefined schema based on data types and constraints.
License
Please rate this library. Is it a good library?
Informations about the package json-schema-validator
JSON Schema Validator
This class validates JSON payloads by using predefined schema based on basic necessary data types. Data types validation can be extended by creating new classes and new constraints can be added by writing new functions in Constraints class.
This schema validator works on following types:
- text
- numeric
- date
- array
- boolean
- choices
Constraints:
- max_length (string length)
- required (for mandatory fiels)
- value_range min_value max_value (for numeric field)
-
choices [choices array] (for predefined choices)
- min_item_count
- max_item_count (for array data type, to restrict number of items)
- sub_nodes (for nested objects)
Example Schema:
Sample JSON Payload to Validate
Usage:
All versions of json-schema-validator with dependencies
PHP Build Version
Package Version
Requires
php Version
^5.3.0 || ^7.0
The package arfeen/json-schema-validator contains the following files
Loading the files please wait ....