PHPackages                             mouf/utils.common.doctrine-cache-wrapper - 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. mouf/utils.common.doctrine-cache-wrapper

ActiveMouf-library[Database &amp; ORM](/categories/database)

mouf/utils.common.doctrine-cache-wrapper
========================================

Provide an install script for a Doctrine's Cache in Mouf Framework.

v1.0(10y ago)099.3k↑128.6%13MITPHPPHP &gt;=5.3.0

Since Apr 13Pushed 3y ago11 watchersCompare

[ Source](https://github.com/thecodingmachine/utils.common.doctrine-cache-wrapper)[ Packagist](https://packagist.org/packages/mouf/utils.common.doctrine-cache-wrapper)[ Docs](https://mouf-php.com/packages/mouf/utils.common.doctrine-cache-wrapper)[ RSS](/packages/mouf-utilscommondoctrine-cache-wrapper/feed)WikiDiscussions 1.0 Synced yesterday

READMEChangelog (1)Dependencies (4)Versions (2)Used By (3)

Doctrine's Cache for Mouf framework
===================================

[](#doctrines-cache-for-mouf-framework)

Provides an install script for Doctrine's Cache system in Mouf Framework.

Content of the package
----------------------

[](#content-of-the-package)

This package contains an install script that provides a [Doctrine's `Cache`](http://docs.doctrine-project.org/en/2.0.x/reference/caching.html) instance in a Mouf project, and a wrapper that makes Doctrine cache system compatible with Mouf cache system.

The Mouf instance of the Doctrine cache driver is called `defaultDoctrineCache`.

By default, it is configured as the following:

- If debug mode is true (constant DEBUG=true is config.php), then an `ArrayCache` is used. Therefore, the cache is purged after each request.
- If debug mode is false, a `APCCache`. If APC is not installed, we fallback to a `FileCache`.

The package also creates a `doctrineMoufCache` instance that is a wrapper around the `defaultDoctrineCache`that provides compatibility with the Mouf cache system.

The wrapper
-----------

[](#the-wrapper)

This package contains the `DoctrineCacheAdapter` class. This class can be used to transform any instance of a Doctrine cache into a cache that is compatible with Mouf.

This is very convenient, especially because any Mouf cache can be purged using the red "Purge button" in the Mouf UI.

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

[](#installation)

To install the package, just add its latest version to your composer.json (see the package in the [packagist website](https://packagist.org/packages/mouf/utils.common.doctrine-annotations-wrapper)) adn run the `php composer.phar update`.

Then in Mouf validation process, a new task should be marked as **To run**, launch the installation process and you will have your `defaultDoctrineCache` instance ready to use !

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.3% 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 ~0 days

Total

2

Last Release

3733d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

doctrineannotationswrappermouf

### Embed Badge

![Health badge](/badges/mouf-utilscommondoctrine-cache-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/mouf-utilscommondoctrine-cache-wrapper/health.svg)](https://phpackages.com/packages/mouf-utilscommondoctrine-cache-wrapper)
```

###  Alternatives

[doctrine/doctrine-module

Laminas Module that provides Doctrine basic functionality required for ORM and ODM modules

4048.2M122](/packages/doctrine-doctrine-module)[nettrine/annotations

Doctrine Annotations for Nette Framework

203.1M8](/packages/nettrine-annotations)[doctrine/doctrine-mongo-odm-module

Laminas Module which provides Doctrine MongoDB ODM functionality

87689.5k35](/packages/doctrine-doctrine-mongo-odm-module)[kdyby/annotations

Doctrine Annotations integration into Nette Framework

121.3M18](/packages/kdyby-annotations)[cache/psr-6-doctrine-bridge

PSR-6 Doctrine bridge

151.0M4](/packages/cache-psr-6-doctrine-bridge)[cache/doctrine-adapter

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

131.1M21](/packages/cache-doctrine-adapter)

PHPackages © 2026

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