PHPackages                             alexpts/codeception-json-schema - 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. alexpts/codeception-json-schema

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

alexpts/codeception-json-schema
===============================

Simple validate response by json schema

1.0.1(6y ago)0131MITPHPPHP ^7.1

Since Aug 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/alexpts/codeception-json-schema)[ Packagist](https://packagist.org/packages/alexpts/codeception-json-schema)[ Docs](https://github.com/alexpts/codeception-json-schema)[ RSS](/packages/alexpts-codeception-json-schema/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

json-schema
===========

[](#json-schema)

[![SensioLabsInsight](https://camo.githubusercontent.com/3b4258304e15d4f023c0a7951910c72a9c8571c0c72ffe344239177d7dc60104/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f32306532333965372d653030652d343661302d623332382d6132613331383634623834312f6269672e706e67)](https://insight.sensiolabs.com/projects/20e239e7-e00e-46a0-b328-a2a31864b841)

[![Build Status](https://camo.githubusercontent.com/97fedae17ff17aa0ad09de7be08557505eaa1ffc06a0f718baa36fb2eeea8172/68747470733a2f2f7472617669732d63692e6f72672f616c65787074732f636f646563657074696f6e2d6a736f6e2d736368656d612e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/alexpts/codeception-json-schema)[![Code Coverage](https://camo.githubusercontent.com/3b4be5bfc7f18ea42434c6d2d382b1abbb5cd82b9083b32c4128df59dfced257/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c65787074732f636f646563657074696f6e2d6a736f6e2d736368656d612f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alexpts/codeception-json-schema/?branch=master)[![Code Climate](https://camo.githubusercontent.com/20b0d67778cc5cc9558fbe2af3bd648cbfbfb63a9040a8bed64293e7d3abd6aa/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f616c65787074732f636f646563657074696f6e2d6a736f6e2d736368656d612f6261646765732f6770612e737667)](https://codeclimate.com/github/alexpts/codeception-json-schema)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d9d037fe609d4f582dd81dacd1f059977ac695f13dd4aa0ac131d508d029b6ee/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c65787074732f636f646563657074696f6e2d6a736f6e2d736368656d612f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alexpts/codeception-json-schema/?branch=master)

Simple validator json schema + module for codeception.

Example (without codeception):

```
use \PTS\JsonSchema;

$validator = new JsonSchema;
$schemasDir = dirname(__DIR__). '/schemas/';
$validator->loadAllSchemas($schemasDir);
$responseBody = \json_encode(['id' => 1, 'name' => 'Alex']);

$errorsMessage = $validator->validateJsonSchema($responseBody, 'v1/users/user-model.json');
if (null !== $errorsMessage) {
    throw \Exception($errorsMessage);
}
```

Example (codeception module):

```
class RegionsCest
{
    public function _before(FunctionalTester $I)
    {
        $I->haveHttpHeader('Authorization', 'Bearer xxx');
    }

    public function getRegionsList(FunctionalTester $I)
    {
        $I->sendGET('/v1/regions/');
        $I->seeResponseCodeIs(200);
        $I->validateJsonSchema($I->grabResponse(), '/v1/regions/get.json');
    }
}
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

2289d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/31106536118e11bf9d0c9d7f467db5b534efa9c46ee76680b308f0c39d9a798c?d=identicon)[alexpts](/maintainers/alexpts)

---

Top Contributors

[![alexpts](https://avatars.githubusercontent.com/u/1306916?v=4)](https://github.com/alexpts "alexpts (12 commits)")

---

Tags

validatorjson-schemacodeceptionvalidate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alexpts-codeception-json-schema/health.svg)

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

###  Alternatives

[opis/json-schema

Json Schema Validator for PHP

65141.2M263](/packages/opis-json-schema)[wixel/gump

A fast, extensible &amp; stand-alone PHP input validation class that allows you to validate any data.

1.2k1.4M31](/packages/wixel-gump)[paycore/openfintech-data

Openfintech data

22010.0k](/packages/paycore-openfintech-data)[geraintluff/jsv4

A (coercive) JSON Schema v4 Validator for PHP

115461.4k4](/packages/geraintluff-jsv4)[sadegh19b/laravel-persian-validation

A comprehensive Laravel validation package for Persian text, numbers, dates, and Iranian national identifiers

18596.0k1](/packages/sadegh19b-laravel-persian-validation)[awurth/slim-validation

A wrapper around the respect/validation PHP validation library for easier error handling and display

65393.6k9](/packages/awurth-slim-validation)

PHPackages © 2026

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