PHPackages                             superbalist/json-guard-cached - 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. superbalist/json-guard-cached

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

superbalist/json-guard-cached
=============================

A json-guard decorator to enable schema caching

v1.0(8y ago)019.7k↓60%[1 PRs](https://github.com/Superbalist/json-guard-cache/pulls)1MITPHP

Since Nov 8Pushed 8y ago3 watchersCompare

[ Source](https://github.com/Superbalist/json-guard-cache)[ Packagist](https://packagist.org/packages/superbalist/json-guard-cached)[ Docs](https://github.com/yuloh/json-guard-cached)[ RSS](/packages/superbalist-json-guard-cached/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (1)

JSON Guard Cached
=================

[](#json-guard-cached)

A json-guard decorator to enable schema caching. Works with any PSR-6 cache implementation.

This decorator is experimental until it proves to be worth using.

Install
-------

[](#install)

Via Composer

```
$ composer require yuloh/json-guard-cached
```

Usage
-----

[](#usage)

```
use Cache\Adapter\Redis\RedisCachePool;
use League\JsonGuard\Dereferencer;
use League\JsonGuard\Cached\CachedDereferencer;

$client = new Redis();
$client->connect('127.0.0.1', 6379);
$cache = new RedisCachePool($client);

$deref = new Dereferencer();
$deref = new CachedDereferencer($cache, $deref);

$schema = $deref->dereference('file://my-schema.json');
```

Testing
-------

[](#testing)

```
$ composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3113d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b8f533cf5a84c29d3860ee32356f0554ead023247638ea952353fc2f01b2e5d?d=identicon)[superbalist](/maintainers/superbalist)

---

Top Contributors

[![mikefaut](https://avatars.githubusercontent.com/u/30619604?v=4)](https://github.com/mikefaut "mikefaut (3 commits)")

---

Tags

json-schemajson-guard

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/superbalist-json-guard-cached/health.svg)

```
[![Health](https://phpackages.com/badges/superbalist-json-guard-cached/health.svg)](https://phpackages.com/packages/superbalist-json-guard-cached)
```

###  Alternatives

[opis/json-schema

Json Schema Validator for PHP

64736.9M186](/packages/opis-json-schema)[geraintluff/jsv4

A (coercive) JSON Schema v4 Validator for PHP

115455.2k4](/packages/geraintluff-jsv4)

PHPackages © 2026

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