PHPackages                             gember/cache-psr - 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. gember/cache-psr

Abandoned → [psr/simple-cache](/?search=psr%2Fsimple-cache)ArchivedLibrary[Caching](/categories/caching)

gember/cache-psr
================

Gember Event Sourcing Cache adapter based on psr/simple-cache (PSR-16)

0.2.0(1y ago)0167MITPHPPHP ^8.3CI passing

Since Apr 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/GemberPHP/cache-psr)[ Packagist](https://packagist.org/packages/gember/cache-psr)[ RSS](/packages/gember-cache-psr/feed)WikiDiscussions main Synced 1mo ago

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

🫚 Gember Cache: PSR SimpleCache (PSR-16)
========================================

[](#-gember-cache-psr-simplecache-psr-16)

[![Build Status](https://camo.githubusercontent.com/559c663741fd3aa5a893965c89beb1f45b64cb7994cdc30aa84b9ea21b708f96/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f47656d6265725048502f63616368652d7073722f6261646765732f6275696c642e706e673f623d6d61696e)](https://github.com/GemberPHP/cache-psr/actions)[![Coverage Status](https://camo.githubusercontent.com/49884b7d1a8737e5a7669243c45f7e6946b138adc3f188e41e74f376cfbe67a6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f47656d6265725048502f63616368652d7073722e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/GemberPHP/cache-psr/code-structure)[![Quality Score](https://camo.githubusercontent.com/2274d6e3e40ece9bed9cd27db13f922f4a58e576f9f0bd70978461c4e7c6b317/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f47656d6265725048502f63616368652d7073722e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/GemberPHP/cache-psr)[![Software License](https://camo.githubusercontent.com/f251623e510f5909f16ae3f4e6e548dac11340b9fde1a99be26b015b39272c00/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c6174)](LICENSE)[![PHP Version](https://camo.githubusercontent.com/05de8fa997dec7bd6b39b7af8c030c734835c6871547f8b2d9ae87e4299ebc8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e332d3838393242462e7376673f7374796c653d666c6174)](http://www.php.net)

[Gember Event Sourcing](https://github.com/GemberPHP/event-sourcing) Cache adapter based on [psr/simple-cache](https://github.com/php-fig/simple-cache) (PSR-16).

> All external dependencies in Gember Event Sourcing are organized into separate packages, making it easy to swap out a vendor adapter for another.

Installation
------------

[](#installation)

Install with Composer:

```
composer require gember/cache-psr
```

Configuration
-------------

[](#configuration)

Bind this adapter to the `Cache` interface in your service definitions.

### Examples

[](#examples)

#### Vanilla PHP

[](#vanilla-php)

```
use Gember\CachePsr\PsrSimpleCache;

$cache = new PsrSimpleCache(
    new SomeSimpleCacheAdapter(), // An implementation of Psr\SimpleCache\CacheInterface of your choice
);
```

You will need to install a PSR-16 Cache implementation as well. Some available packages:

- [symfony/cache](https://github.com/symfony/cache)
- [laminas/laminas-cache](https://github.com/laminas/laminas-cache)
- [phpfastcache/phpfastcache](https://github.com/PHPSocialNetwork/phpfastcache)

#### Symfony

[](#symfony)

It is recommended to use the [Symfony bundle](https://github.com/GemberPHP/event-sourcing-symfony-bundle) to configure Gember Event Sourcing. With this bundle, the adapter is automatically set as the default for Cache.

If you're not using the bundle, you can bind it directly to the `Cache` interface.

```
Gember\EventSourcing\Util\Cache\Cache:
  class: Gember\CachePsr\PsrSimpleCache\PsrSimpleCache
  arguments:
    - '@cache.app' # or any other Symfony Cache definition of your choice
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance49

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~10 days

Total

2

Last Release

374d ago

### Community

Maintainers

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

---

Top Contributors

[![jerowork](https://avatars.githubusercontent.com/u/4119451?v=4)](https://github.com/jerowork "jerowork (12 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

cachecqrsdcbddddomain-driven-designdynamic-consistency-boundaryevent-sourcinggemberphp-figpsr-16simple-cachepsrcachesimple-cachepsr-16Domain Driven Designdddevent sourcingcqrsphp-figgember

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/gember-cache-psr/health.svg)

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

###  Alternatives

[psr/simple-cache

Common interfaces for simple caching

8.1k727.3M2.1k](/packages/psr-simple-cache)[sabre/cache

Simple cache abstraction layer implementing PSR-16

541.2M3](/packages/sabre-cache)

PHPackages © 2026

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