PHPackages                             abacaphiliac/zend-json-schema-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. abacaphiliac/zend-json-schema-validator

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

abacaphiliac/zend-json-schema-validator
=======================================

A ZF2 validator for justinrainbow/json-schema.

1.0.0(6y ago)073.7k↓42%MITPHPPHP &gt;=5.6

Since Jun 9Pushed 6y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (8)Versions (4)Used By (0)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/70419a1f75bccf8ee98fec30bcb9b328b53243f64de6b684ae41aef0c9b8d320/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f61626163617068696c6961632f7a656e642d6a736f6e2d736368656d612d76616c696461746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/abacaphiliac/zend-json-schema-validator/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/ec424ce8d0a46e40b4ef6739ce47d4025533bb12d204ebd2249fb2bf45776293/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f61626163617068696c6961632f7a656e642d6a736f6e2d736368656d612d76616c696461746f722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/abacaphiliac/zend-json-schema-validator/?branch=master)[![Build Status](https://camo.githubusercontent.com/4d4362acfb459f1c92d926c7ffc3fe4604b9e20df10f549854478d3271486b29/68747470733a2f2f7472617669732d63692e6f72672f61626163617068696c6961632f7a656e642d6a736f6e2d736368656d612d76616c696461746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/abacaphiliac/zend-json-schema-validator)

abacaphiliac/zend-json-schema-validator
=======================================

[](#abacaphiliaczend-json-schema-validator)

A ZF2 validator for justinrainbow/json-schema.

Installation
============

[](#installation)

```
composer require abacaphiliac/zend-json-schema-validator
```

Usage
=====

[](#usage)

Use it inline:

```
$validator = new \Abacaphiliac\Zend\Validator\JsonSchema(array(
  'file' => '/path/to/your/schema.json',
));
if (!$validator->isValid('{"Foo":"Bar"}')) {
    $validationMessages = $validator->getMessages();
}

```

Hook it up to an Apigility input-filter-spec:

```
return array(
    'input_filter_specs' => array(
        'YourApi\\V1\\Rest\\YourService\\Validator' => array(
            array(
                'name' => 'YourJsonParam',
                'validators' => array(
                    array(
                        'name' => 'IntegrationConfiguration\\Validator\\JsonSchema',
                        'options' => array(
                            'file' => dirname(dirname(dirname(__DIR__))) . '/config/json-schema/IntegrationConfiguration/V1/Rest/OutboundDocumentation/configurations-config.json',
                        ),
                    ),
                )
            ),
        ),
    ),
);

```

Dependencies
============

[](#dependencies)

See [composer.json](composer.json).

Contributing
------------

[](#contributing)

```
composer update && vendor/bin/phing

```

This library attempts to comply with [PSR-1](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md), [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md), and [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md). If you notice compliance oversights, please send a patch via pull request.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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 ~575 days

Total

3

Last Release

2526d ago

Major Versions

0.1.1 → 1.0.02019-08-04

PHP version history (2 changes)0.1.0PHP &gt;=5.3

1.0.0PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/29004cd917fdd7e4a8cc4ddba16f0bbcd90829513c57fc96e3b4f3fcb53f7ead?d=identicon)[abacaphiliac](/maintainers/abacaphiliac)

---

Top Contributors

[![abacaphiliac](https://avatars.githubusercontent.com/u/1656273?v=4)](https://github.com/abacaphiliac "abacaphiliac (7 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/abacaphiliac-zend-json-schema-validator/health.svg)

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

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k28.9M2.4k](/packages/infection-infection)[paycore/openfintech-data

Openfintech data

22110.1k](/packages/paycore-openfintech-data)[pantheon-systems/terminus

A command line interface for Pantheon

3391.5M18](/packages/pantheon-systems-terminus)[wikimedia/parsoid

Parsoid, a bidirectional parser between wikitext and HTML5

187557.3k3](/packages/wikimedia-parsoid)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.6M343](/packages/drupal-core-dev)

PHPackages © 2026

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