league / json-guard
A validator for JSON using json-schema.
Installs: 1 668 206
Dependents: 32
Suggesters: 0
Security: 0
Stars: 183
Watchers: 9
Forks: 28
Open Issues: 9
Requires
- php: >=5.6.0
- ext-bcmath: *
- psr/container: ^1.0
Requires (Dev)
- ext-curl: *
- json-schema/json-schema-test-suite: 1.2.0
- league/json-reference: 1.0.0
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
- squizlabs/php_codesniffer: ~2.3
This package is not auto-updated.
Last update: 2022-02-01 12:58:07 UTC
README
Unmaintained!
This project is no longer maintained. Recommended alternatives:
This package is a validator for JSON Schema. It fully supports draft 4 of the specification.
Notable Features:
- Passes the entire draft 4 JSON Schema Test Suite.
- Fully customizable with custom rule sets.
- Helpful error messages with JSON Pointers.
Install
Via Composer
composer require league/json-guard
Usage
Complete documentation is available here.
Change log
Please see CHANGELOG for more information about what has changed recently.
Testing
You need to run a web server while testing.
$ composer test-server
Once the server is running, you can run the test suite.
$ composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email matthew.james.allan@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.