PHPackages                             wa72/doctrine-cache-extensions - 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. wa72/doctrine-cache-extensions

ActiveLibrary[Caching](/categories/caching)

wa72/doctrine-cache-extensions
==============================

Extensions for DoctrineCache

037PHP

Since Feb 19Pushed 13y ago1 watchersCompare

[ Source](https://github.com/wasinger/doctrine-cache-extensions)[ Packagist](https://packagist.org/packages/wa72/doctrine-cache-extensions)[ RSS](/packages/wa72-doctrine-cache-extensions/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

DoctrineCacheExtensions
=======================

[](#doctrinecacheextensions)

Contains two classes that are add-ons to Doctrine\\Common\\Cache:

- Wa72\\DoctrineCacheExtensions\\FileCache
- Wa72\\DoctrineCacheExtensions\\TimestampableHashableCache

FileCache is a cache provider for Doctrine\\Common\\Cache that stores cached elements as files in a given cache directory. As of today, there is a native FileCache provider class in the Doctrine Cache package itself, but it didn't exist yet when I needed it some months ago, so I wrote this class. Now I'm still using my implementation because it has special support for the second class in this package, TimestampableHashableCache, because it is able to return the filemtime of the cache file.

TimestampableHashableCache is a class that implements Doctrine's Cache interface and provides some additional methods for getting the timestamp when the cache was saved and an md5 hash of the cached content. For doing the real work it needs another CacheProvider. This can be any of the Doctrine\\Common\\Cache\\CacheProvider subclasses, such as ApcCache or the above mentioned FileCache.

Requirements
------------

[](#requirements)

- PHP 5.3+
- [Doctrine\\Common\\Cache](https://github.com/doctrine/cache)

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

[](#installation)

- using \[composer\] (): add "wa72/doctrine-cache-extensions": "dev-master" to the "require" section of your composer.json
- using other PSR-0 compliant autoloader: clone this project to where your vendor libraries are and point your autoloader to look for the "\\Wa72\\DoctrineCacheExtensions" namespace in the "src" directory of this project

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/wa72-doctrine-cache-extensions/health.svg)

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

PHPackages © 2026

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