Skip to content

MilkyC/PHP-JSON-Validation-Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

PHP JSON Validation Engine

JSON Validation Engine written in PHP

About

JSONValidator is an abstract class that validates JSON based on the schema defined in the child class.

Features

Validation can be done via:

  • inline closure functions in the schema itself
  • mapped functions in the parent class ValidationMapping array
    • mapped functions can be chained together using the ">" character

Supports Validation for:

  • Required Values
  • Optional Values
  • Conditional Values :
    • If a specific field is present validate a specific scheme

Pre and Post operations

Usage

See example(s)!

About

PHP JSON Validation Engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages