PHPackages                             thecodingmachine/psr-6-doctrine-bridge-universal-module - 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. thecodingmachine/psr-6-doctrine-bridge-universal-module

ActiveLibrary[Caching](/categories/caching)

thecodingmachine/psr-6-doctrine-bridge-universal-module
=======================================================

Cross-framework module for cache/psr-6-doctrine-bridge

v1.0.0(8y ago)0111.8k1MITPHPPHP &gt;=7.0

Since Sep 22Pushed 8y ago6 watchersCompare

[ Source](https://github.com/thecodingmachine/psr-6-doctrine-bridge-universal-module)[ Packagist](https://packagist.org/packages/thecodingmachine/psr-6-doctrine-bridge-universal-module)[ RSS](/packages/thecodingmachine-psr-6-doctrine-bridge-universal-module/feed)WikiDiscussions 1.1 Synced 2w ago

READMEChangelog (1)Dependencies (9)Versions (3)Used By (0)

[![Build Status](https://camo.githubusercontent.com/d472d469d4d6b6ff7cbead2a0661b95c214a08d8ff94c46dfbe3b6f1b3347502/68747470733a2f2f7472617669732d63692e6f72672f746865636f64696e676d616368696e652f7073722d362d646f637472696e652d6272696467652d756e6976657273616c2d6d6f64756c652e7376673f6272616e63683d312e31)](https://travis-ci.org/thecodingmachine/psr-6-doctrine-bridge-universal-module)[![Coverage Status](https://camo.githubusercontent.com/a0d8a79f36e0b4eb86039a5459da6df7a32c191242ae5b4e2a2afbca1d7b2fa7/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f746865636f64696e676d616368696e652f7073722d362d646f637472696e652d6272696467652d756e6976657273616c2d6d6f64756c652f62616467652e7376673f6272616e63683d312e3126736572766963653d676974687562)](https://coveralls.io/github/thecodingmachine/psr-6-doctrine-bridge-universal-module?branch=1.1)

PSR6 to Doctrine cache universal module
=======================================

[](#psr6-to-doctrine-cache-universal-module)

This package integrates [cache/psr-6-doctrine-bridge](https://github.com/php-cache/doctrine-bridge) (the bridge between Doctrine cache and PSR-6) in any [container-interop/service-provider](https://github.com/container-interop/service-provider) compatible framework/container.

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

[](#installation)

```
composer require thecodingmachine/psr-6-doctrine-bridge-universal-module

```

Once installed, you need to register the [`TheCodingMachine\DoctrineCacheBridgeServiceProvider`](src/DoctrineCacheBridgeServiceProvider.php) into your container.

If your container supports thecodingmachine/discovery integration, you have nothing to do. Otherwise, refer to your framework or container's documentation to learn how to register *service providers*.

Introduction
------------

[](#introduction)

This service provider will provide a default Doctrine cache implementation based on the already configured PSR-6 cache.

It assumes there is already a configured service providing a PSR-6 cache pool. You can install a service provider providing this service using:

```
composer require thecodingmachine/stash-universal-module

```

(this will install Stash and its related service-provider. Stash is a PSR-6 caching library)

### Usage

[](#usage)

```
use Doctrine\Common\Cache\CacheProvider;

$cachePool = $container->get(CacheProvider::class);
echo $cachePool->get('my_cached_value');
```

Expected values / services
--------------------------

[](#expected-values--services)

This *service provider* expects the following configuration / services to be available:

NameCompulsoryDescription`CacheItemPoolInterface::class`*yes*A PSR-6 compatible cache pool.Provided services
-----------------

[](#provided-services)

This *service provider* provides the following services:

Service nameDescription`Doctrine\Common\Cache\CacheProvider`A Doctrine cache, this is actually a bridge to the PSR-6 pool.`Doctrine\Common\Cache\Cache`An alias to the `CacheProvider`.Extended services
-----------------

[](#extended-services)

This *service provider* does not extend any service.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

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

Total

3

Last Release

3249d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1104771?v=4)[mouf](/maintainers/mouf)[@Mouf](https://github.com/Mouf)

![](https://avatars.githubusercontent.com/u/1847918?v=4)[TheCodingMachine](/maintainers/thecodingmachine)[@thecodingmachine](https://github.com/thecodingmachine)

---

Top Contributors

[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14736.9k1](/packages/phpfastcache-phpssdb)[ichhabrecht/intcache

Turn uncachable page objects into cacheable links

193.9k](/packages/ichhabrecht-intcache)

PHPackages © 2026

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