PHPackages                             zweifisch/jsonschema - 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. zweifisch/jsonschema

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

zweifisch/jsonschema
====================

v0.0.1(12y ago)0116MITPHP

Since Sep 21Pushed 12y ago1 watchersCompare

[ Source](https://github.com/zweifisch/php-json-schema)[ Packagist](https://packagist.org/packages/zweifisch/jsonschema)[ RSS](/packages/zweifisch-jsonschema/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

a partially implemented json schema validator [![Build Status](https://camo.githubusercontent.com/39687d08a335f43a9a29edc47def0e88dc991972c1f4df7c87d4d650e6911c91/68747470733a2f2f7472617669732d63692e6f72672f7a77656966697363682f7068702d6a736f6e2d736368656d612e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/zweifisch/php-json-schema)

```
$validator = new \jsonschema\Validator;

if($errors = $validator->validate($input, $schema))
{
	foreach($errors as $error)
	{
		list($constrain, $detail, $key) = $error;
	}
}
else
{
	// $input is valid
}
```

also validate schema

```
try
{
	$errors = $validator->validate($input, $schema, true);
}
catch(Exception $e)
{
	// $schema is invalid
}
```

TBD
---

[](#tbd)

- array as `type`
- type `any`
- `dependencies`
- canonical dereferencing(inline dereferencing is supported)
- `id`
- ...

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

4644d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cdbb731edddfc89091983a03b73a05e286cbb966fcdb300758f157f327f0274f?d=identicon)[zf](/maintainers/zf)

---

Top Contributors

[![zweifisch](https://avatars.githubusercontent.com/u/447862?v=4)](https://github.com/zweifisch "zweifisch (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zweifisch-jsonschema/health.svg)

```
[![Health](https://phpackages.com/badges/zweifisch-jsonschema/health.svg)](https://phpackages.com/packages/zweifisch-jsonschema)
```

###  Alternatives

[ziming/laravel-zxcvbn

Zxcvbn Password validation rule for Laravel

3064.3k](/packages/ziming-laravel-zxcvbn)

PHPackages © 2026

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