PHPackages                             aipng/json-validator - 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. aipng/json-validator

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

aipng/json-validator
====================

json validator (based on opis/json-schema)

1.2(2y ago)039MITPHPPHP &gt;= 8.1

Since Jan 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/aipng/json-validator)[ Packagist](https://packagist.org/packages/aipng/json-validator)[ RSS](/packages/aipng-json-validator/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (7)Versions (4)Used By (0)

JSON validator
==============

[](#json-validator)

JSON validator (based on [opis/json-schema](https://github.com/opis/json-schema))

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

[](#installation)

```
composer require aipng/json-validator
```

Usage
-----

[](#usage)

Simple - validate JSON input against simple JSON schema

```
    use \AipNg\JsonValidator\JsonValidator;

    $validator = new JsonValidator;

    $validator->validate($jsonData, $jsonSchemaPath);
```

Validator provides simple mapping of JSON schema indentificators to a directory structure, eg:

-  -&gt; `/validate($jsonData, $jsonSchemaPath);
```

Nette extension
---------------

[](#nette-extension)

Register

```
extensions:
	jsonValidator: AipNg\JsonValidator\DI\JsonValidatorExtension
```

Configure

```
jsonValidator:
	max_errors: 10              # maximum of returned errors
	mapping:                    # maps JSON schema identificators to directory structure
		prefix: https://www.example.org/api/schema/
		directory: %wwwDir%/../src/schema/
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~388 days

Total

3

Last Release

865d ago

PHP version history (2 changes)1.0PHP &gt;= 8.0

1.2PHP &gt;= 8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29610479?v=4)[aipng](/maintainers/aipng)[@aipng](https://github.com/aipng)

---

Top Contributors

[![khorsky](https://avatars.githubusercontent.com/u/160295?v=4)](https://github.com/khorsky "khorsky (6 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/aipng-json-validator/health.svg)

```
[![Health](https://phpackages.com/badges/aipng-json-validator/health.svg)](https://phpackages.com/packages/aipng-json-validator)
```

###  Alternatives

[nette/schema

📐 Nette Schema: validating data structures against a given Schema.

1.0k370.3M176](/packages/nette-schema)[nette/forms

📝 Nette Forms: generating, validating and processing secure forms in PHP. Handy API, fully customizable, server &amp; client side validation and mature design.

54413.6M513](/packages/nette-forms)[nette/security

🔑 Nette Security: provides authentication, authorization and a role-based access control management via ACL (Access Control List)

3889.7M331](/packages/nette-security)[nette/component-model

⚛ Nette Component Model

28817.0M106](/packages/nette-component-model)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[ssch/typo3-rector

Instant fixes for your TYPO3 PHP code by using Rector.

2603.2M436](/packages/ssch-typo3-rector)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
