2017 © Pedro Peláez
 

library json-respector

A respect/validation instances creator from JSON Schemas

image

augusthur/json-respector

A respect/validation instances creator from JSON Schemas

  • Wednesday, May 9, 2018
  • by augusthur
  • Repository
  • 1 Watchers
  • 0 Stars
  • 35 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 25 % Grown

The README.md

json-respector

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

A Validator which transforms JSON Schemas to respect/validation instances., (*2)

Supported Rules

Draft 6, (*3)

Install

Via Composer, (*4)

``` bash $ composer require augusthur/json-respector, (*5)


## Usage ``` php // Create the Validator Service instance $validation = new Augusthur\JsonRespector\ValidatorService(); // Generate a Respect Validator instance from a JSON schema string $v = $validation->fromSchema('{"type": "string", "minLength": 3}'); // Returns true $v->validate('abcde'); // To use the plain Respect Validator use start() // Returns true $validation->start()->numeric()->validate(123);

Change log

Please see CHANGELOG for more information on what has changed recently., (*6)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*7)

Security

If you discover any security related issues, just use the issue tracker., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

09/05 2018

dev-master

9999999-dev https://github.com/augusthur/json-respector

A respect/validation instances creator from JSON Schemas

  Sources   Download

MIT

The Requires

 

The Development Requires

schema json validator validation json-schema respect