PHPackages                             zerifas/json - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. zerifas/json

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

zerifas/json
============

Define a schema for your JSON documents, and validate them

3.0.0(3y ago)04391PHPPHP &gt;=8.0

Since Oct 6Pushed 3y agoCompare

[ Source](https://github.com/Drarok/json)[ Packagist](https://packagist.org/packages/zerifas/json)[ RSS](/packages/zerifas-json/feed)WikiDiscussions develop Synced yesterday

READMEChangelogDependencies (3)Versions (6)Used By (1)

JSON [![Build Status](https://github.com/drarok/json/actions/workflows/php.yml/badge.svg)](https://github.com/drarok/json/actions/workflows/php.yml/badge.svg) [![Coverage Status](https://camo.githubusercontent.com/b8ec9c8be7d96afbbfb6a4b27affda06447341445cfb449a5834bf6784ac851c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f447261726f6b2f6a736f6e2f62616467652e737667)](https://coveralls.io/github/Drarok/json)
================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#json--)

This is a small library allowing you to define a schema for your JSON documents, validate them, and get a "safe" version of the document, with all optional values set to their defaults.

Installation
------------

[](#installation)

Use [composer](https://getcomposer.org):

```
$ composer required zerifas/json
```

Usage
-----

[](#usage)

```
