PHPackages                             cache/psr-6-doctrine-bridge - 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. [Database &amp; ORM](/categories/database)
4. /
5. cache/psr-6-doctrine-bridge

ActiveLibrary[Database &amp; ORM](/categories/database)

cache/psr-6-doctrine-bridge
===========================

PSR-6 Doctrine bridge

3.2.0(4y ago)151.0M↓17.9%44MITPHPPHP &gt;=7.4

Since Dec 5Pushed 4y ago2 watchersCompare

[ Source](https://github.com/php-cache/doctrine-bridge)[ Packagist](https://packagist.org/packages/cache/psr-6-doctrine-bridge)[ Docs](http://www.php-cache.com/en/latest/)[ RSS](/packages/cache-psr-6-doctrine-bridge/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (11)Used By (4)

PSR 6 Doctrine Bridge
=====================

[](#psr-6-doctrine-bridge)

[![Gitter](https://camo.githubusercontent.com/2ded3ed1778dcfc9af5e2dfaad55e176ade49082cb6ea757169cc5ea23bf32ac/68747470733a2f2f6261646765732e6769747465722e696d2f7068702d63616368652f63616368652e737667)](https://gitter.im/php-cache/cache?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)[![Latest Stable Version](https://camo.githubusercontent.com/503cb4cfc4ccf96d97e44266ac03a4eb05abd495da5d5d1ee70ed0ba9646e817/68747470733a2f2f706f7365722e707567782e6f72672f63616368652f7073722d362d646f637472696e652d6272696467652f762f737461626c65)](https://packagist.org/packages/cache/psr-6-doctrine-bridge)[![codecov.io](https://camo.githubusercontent.com/dcb69dd903820e7ed5d69327137c63d6fe08597a8c23e0330a35d4ad54d9cdc9/68747470733a2f2f636f6465636f762e696f2f6769746875622f7068702d63616368652f646f637472696e652d6272696467652f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://codecov.io/github/php-cache/doctrine-bridge?branch=master)[![Total Downloads](https://camo.githubusercontent.com/3d1e31c4d550741afd3f26232cd6dd4cb7816bde456f61c5bd491ff060dae00f/68747470733a2f2f706f7365722e707567782e6f72672f63616368652f7073722d362d646f637472696e652d6272696467652f646f776e6c6f616473)](https://packagist.org/packages/cache/psr-6-doctrine-bridge)[![Monthly Downloads](https://camo.githubusercontent.com/cb0a48e02bfbf889627f89691a2dc6b9ba775b6b10cbfd8007a9872b4bfa5d09/68747470733a2f2f706f7365722e707567782e6f72672f63616368652f7073722d362d646f637472696e652d6272696467652f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/cache/psr-6-doctrine-bridge)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

This library provides a PSR-6 compliant bridge between Doctrine and a Cache Pool. The bridge implements the `Doctrine\Common\Cache\Cache` interface. This is useful for projects that require an implementation of `Doctrine\Common\Cache\Cache`, but you still want to use a PSR-6 implementation.

### Install

[](#install)

```
composer require cache/psr-6-doctrine-bridge
```

### Usage

[](#usage)

```
use Cache\Bridge\Doctrine\DoctrineCacheBridge;

// Assuming $pool is an instance of \Psr\Cache\CacheItemPoolInterface
$cacheProvider = new DoctrineCacheBridge($pool);

$cacheProvider->contains($key);
$cacheProvider->fetch($key);
$cacheProvider->save($key, $value, $ttl);
$cacheProvider->delete($key);

// Also, if you need it:
$cacheProvider->getPool(); // same as $pool
```

### Contribute

[](#contribute)

Contributions are very welcome! Send a pull request to the [main repository](https://github.com/php-cache/cache) or report any issues you find on the [issue tracker](http://issues.php-cache.com).

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 64.5% 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 ~247 days

Recently: every ~496 days

Total

10

Last Release

1584d ago

Major Versions

1.0.0 → 2.0.02015-12-13

2.2.0 → 3.0.02017-03-13

PHP version history (5 changes)1.0.0PHP ^5.5|^7.0

2.2.0PHP ^5.5 || ^7.0

3.0.0PHP ^5.6 || ^7.0

3.1.0PHP ^5.6 || ^7.0 || ^8.0

3.2.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/401ccc5eea13c60cf807ae982af00e368e2166e2f26d8eb541dcd881a57385bc?d=identicon)[Nyholm](/maintainers/Nyholm)

![](https://www.gravatar.com/avatar/9cf67675d97e63f6ff9e7fed55f35502b24cd834081806a6731229117c0630bb?d=identicon)[aequasi](/maintainers/aequasi)

---

Top Contributors

[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (20 commits)")[![prisis](https://avatars.githubusercontent.com/u/2716058?v=4)](https://github.com/prisis "prisis (4 commits)")[![ruudk](https://avatars.githubusercontent.com/u/104180?v=4)](https://github.com/ruudk "ruudk (3 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (2 commits)")[![azjezz](https://avatars.githubusercontent.com/u/29315886?v=4)](https://github.com/azjezz "azjezz (1 commits)")[![florianv](https://avatars.githubusercontent.com/u/1586668?v=4)](https://github.com/florianv "florianv (1 commits)")

---

Tags

doctrinecachepsr-6

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cache-psr-6-doctrine-bridge/health.svg)

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

###  Alternatives

[matthiasmullie/scrapbook

Scrapbook is a PHP cache library, with adapters for e.g. Memcached, Redis, Couchbase, APCu, SQL and additional capabilities (e.g. transactions, stampede protection) built on top.

3212.5M32](/packages/matthiasmullie-scrapbook)[cache/doctrine-adapter

A PSR-6 cache implementation using Doctrine. This implementation supports tags

151.0M21](/packages/cache-doctrine-adapter)[apix/cache

A thin PSR-6 cache wrapper with a generic interface to various caching backends emphasising cache taggging and indexing to Redis, Memcached, PDO/SQL, APC and other adapters.

114542.8k6](/packages/apix-cache)[kdyby/doctrine-cache

Doctrine Cache bridge for Nette Framework

101.3M19](/packages/kdyby-doctrine-cache)[cache/cache-bundle

Symfony 2 bundle providing integration between PSR-6 compliant cache services and the framework. It supports cache for sessions, routing and Doctrine

43437.0k](/packages/cache-cache-bundle)

PHPackages © 2026

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