PHPackages                             rollerworks/metadata-doctrine-cache - 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. rollerworks/metadata-doctrine-cache

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

rollerworks/metadata-doctrine-cache
===================================

Doctrine Cache adapter for the Rollerworks Metadata Component

v0.2(10y ago)07081MITPHPPHP &gt;=5.4

Since Sep 17Pushed 10y agoCompare

[ Source](https://github.com/rollerworks/metadata-doctrine-cache)[ Packagist](https://packagist.org/packages/rollerworks/metadata-doctrine-cache)[ RSS](/packages/rollerworks-metadata-doctrine-cache/feed)WikiDiscussions master Synced 1mo ago

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

Doctrine Cache adapter for the Rollerworks Metadata Component
=============================================================

[](#doctrine-cache-adapter-for-the-rollerworks-metadata-component)

[![Build Status](https://camo.githubusercontent.com/25848e1870a7cea592092b3742d4b77369b3efe70bd43b5fc2fc6a97ce22a955/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f726f6c6c6572776f726b732f25534b454c252e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/rollerworks/%SKEL%)

This package provides a Doctrine Cache adapter for the [Rollerworks Metadata Component](https://github.com/rollerworks/rollerworks-metadata).

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

[](#installation)

To install this package, add `rollerworks/metadata-doctrine-cache` to your composer.json

```
$ php composer.phar require rollerworks/metadata-doctrine-cache
```

Then, you can install the new dependencies by running Composer's `update`command from the directory where your `composer.json` file is located:

```
$ php composer update rollerworks/metadata-doctrine-cache
```

Now, Composer will automatically download all required files, and install them for you.

Usage
-----

[](#usage)

```
require 'vendor/autoload.php';

use Doctrine\Common\Cache\ArrayCache;
use Doctrine\Common\Cache\ChainCache;
use Doctrine\Common\Cache\FilesystemCache;
use Rollerworks\Component\Metadata\CacheableMetadataFactory;
use Rollerworks\Component\Metadata\Cache\Validator\AlwaysFreshValidator;
use Rollerworks\Component\Metadata\Cache\ArrayCache;

$cacheDirectory = ...;

// The Doctrine cache library.
$doctrineCache = new ChainCache(
    [
        // Include the ArrayCache as the ChainCache will populate all the previous cache layers.
        // So if the `FilesystemCache` has a match it will populate the faster ArrayCache.
        new ArrayCache(),

        // Saves the cache in the filestem.
        new FilesystemCache($cacheDirectory),
    ]
);

// Rollerworks\Component\Metadata\Cache\CacheProvider
$cache = Rollerworks\Component\Metadata\Driver\Cache\DoctrineCache($doctrineCache);

// Rollerworks\Component\Metadata\Driver\MappingDriver
$driver = ...;

// Rollerworks\Component\Metadata\Cache\FreshnessValidator
$freshnessValidator = ...;

$metadataFactory = new CacheableMetadataFactory($driver, $doctrineCache, $freshnessValidator);
```

That's it.

Running test
------------

[](#running-test)

Whenever you open a pull-request tests are already run by Travis-CI.

Tests can be run with PHPUnit, make sure you use the `--prefer-source`option when running Composer as some classes for testing are not available in the archive package.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

3896d ago

### Community

Maintainers

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

---

Top Contributors

[![sstok](https://avatars.githubusercontent.com/u/904790?v=4)](https://github.com/sstok "sstok (3 commits)")

---

Tags

doctrinemetadatacacherollerworks

### Embed Badge

![Health badge](/badges/rollerworks-metadata-doctrine-cache/health.svg)

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

###  Alternatives

[cache/doctrine-adapter

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

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

PSR-6 Doctrine bridge

151.0M4](/packages/cache-psr-6-doctrine-bridge)[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)[thomas-schulz/doctrine-phpstorm-meta

PhpStorm meta data for expected arguments completion in Doctrine projects.

3435.0k](/packages/thomas-schulz-doctrine-phpstorm-meta)

PHPackages © 2026

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