Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 641 Bytes

File metadata and controls

33 lines (21 loc) · 641 Bytes

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)!