PHPackages                             b3none/php-cache - 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. [Caching](/categories/caching)
4. /
5. b3none/php-cache

ActiveLibrary[Caching](/categories/caching)

b3none/php-cache
================

A super simple PHP caching layer.

1.1.0(7y ago)725PHP

Since Jul 17Pushed 6y agoCompare

[ Source](https://github.com/b3none/php-cache)[ Packagist](https://packagist.org/packages/b3none/php-cache)[ RSS](/packages/b3none-php-cache/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)DependenciesVersions (3)Used By (0)

PHP Cache
=========

[](#php-cache)

A super simple PHP caching layer.

Author
======

[](#author)

[B3none](https://b3none.co.uk/) - Developer / Maintainer

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

[](#installation)

`composer require b3none/php-cache`

Example
=======

[](#example)

The following is an extract from the [example.php](https://github.com/b3none/php-cache/blob/master/example.php)

```
// We can choose to specify the cache dir in the constructor.
$cacheClient = new \B3none\Cache\CacheClient('/tmp/B3none/cache');

$cacheId = "b3none";
if ($cacheClient->hasCache($cacheId) && $cacheClient->isFreshEnough($cacheId, 5)) {
    $cache = $cacheClient->getCache($cacheId);
    print_r($cache);
} else {
    $dataToCache = [
        'b3none' => [
            'github' => 'https://github.com/b3none',
            'steam' => 'https://steamcommunity.com/b3none'
        ]
    ];
    $cacheClient->setCache($cacheId, $dataToCache);
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

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

Every ~1 days

Total

2

Last Release

2855d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4adb07459f76c4788cfa064b4f82c9cd28154285285abc67d20043da9a02ebe3?d=identicon)[b3none](/maintainers/b3none)

---

Top Contributors

[![B3none](https://avatars.githubusercontent.com/u/24966460?v=4)](https://github.com/B3none "B3none (9 commits)")

---

Tags

cachecache-storagephpphp-7php7

### Embed Badge

![Health badge](/badges/b3none-php-cache/health.svg)

```
[![Health](https://phpackages.com/badges/b3none-php-cache/health.svg)](https://phpackages.com/packages/b3none-php-cache)
```

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)

PHPackages © 2026

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