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

ActiveLibrary[Caching](/categories/caching)

parshikovpavel/psr-cache-adapter
================================

Adapter-decorator to cast a PSR-6 pool implementation to the PSR-16 simple cache interface

0.0.2(6y ago)0201MITPHPPHP ^7.1CI failing

Since Sep 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/parshikovpavel/psr-cache-adapter)[ Packagist](https://packagist.org/packages/parshikovpavel/psr-cache-adapter)[ Docs](https://github.com/parshikovpavel/psr-cache-adapter)[ RSS](/packages/parshikovpavel-psr-cache-adapter/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (3)Versions (3)Used By (1)

PSR-6 to PSR-16 adapter
=======================

[](#psr-6-to-psr-16-adapter)

The package contains an adapter which decorates a [PSR-6](https://www.php-fig.org/psr/psr-6/) pool implementation and converts it to a PSR-16 simple cache interface.

Adapter enables to avoid code duplication during development of a PSR-6 and PSR-16 compatible caching library. It's enough to develop a single PSR-6 implementation and then adapt it using the presented adapter.

The adapter is tested with a [package](https://github.com/parshikovpavel/array-cache) to cache data in memory using a PHP array.

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

[](#installation)

The recommended method of installing is via Composer.

Run the following command from the project root:

```
composer require parshikovpavel/psr-cache-adapter
```

Usage
=====

[](#usage)

A detailed description of the interfaces implemented in the library can be found in [PSR-6](https://www.php-fig.org/psr/psr-6/) and [PSR-16](https://www.php-fig.org/psr/psr-16/).

Just make an injection a created PSR-6 pool class in an adapter constructor as below:

```
use ppCache\Psr6ToPsr16Adapter;

/* Creating an instance of some PSR-6 pool  */

/** @var \Psr\Cache\CacheItemPoolInterface $psr6 */
$psr6 = new SomeCacheItemPool();

/* Adapting it to the PSR-16 simple cache interface */
$psr16 = new Psr6ToPsr16Adapter($psr6);
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

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

Total

2

Last Release

2457d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/27277505?v=4)[Pavel Parshikov](/maintainers/parshikovpavel)[@parshikovpavel](https://github.com/parshikovpavel)

---

Top Contributors

[![parshikovpavel](https://avatars.githubusercontent.com/u/27277505?v=4)](https://github.com/parshikovpavel "parshikovpavel (7 commits)")

---

Tags

arraycachesimple-cachepsr-16psr6adapterpsr-6psr16

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laminas/laminas-cache

Caching implementation with a variety of storage options, as well as codified caching strategies for callbacks, classes, and output

1067.2M146](/packages/laminas-laminas-cache)[cache/array-adapter

A PSR-6 cache implementation using a php array. This implementation supports tags

558.5M157](/packages/cache-array-adapter)[cache/simple-cache-bridge

A PSR-6 bridge to PSR-16. This will make any PSR-6 cache compatible with SimpleCache.

423.3M28](/packages/cache-simple-cache-bridge)[sabre/cache

Simple cache abstraction layer implementing PSR-16

551.3M4](/packages/sabre-cache)[codeigniter4/cache

PSR-6 and PSR-16 Cache Adapters for CodeIgniter 4

1321.4k](/packages/codeigniter4-cache)[infocyph/intermix

A lightweight PHP DI container, invoker, serializer, and utility toolkit.

137.3k1](/packages/infocyph-intermix)

PHPackages © 2026

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