PHPackages                             openclassrooms/doctrine-cache-extension-bundle - 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. openclassrooms/doctrine-cache-extension-bundle

ActiveSymfony-bundle[Caching](/categories/caching)

openclassrooms/doctrine-cache-extension-bundle
==============================================

Symfony2 Bundle extending doctrine cache capabilities

v2.0.1(4y ago)084.1k1[1 PRs](https://github.com/OpenClassrooms/DoctrineCacheExtensionBundle/pulls)MITPHPPHP &gt;=7.1

Since Dec 6Pushed 4y ago21 watchersCompare

[ Source](https://github.com/OpenClassrooms/DoctrineCacheExtensionBundle)[ Packagist](https://packagist.org/packages/openclassrooms/doctrine-cache-extension-bundle)[ RSS](/packages/openclassrooms-doctrine-cache-extension-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (5)Used By (0)

[![Build Status](https://camo.githubusercontent.com/301b73f742dfc411e5672bf6e485b2344d396f2cfe455c4ce50131b9bcef39b2/68747470733a2f2f7472617669732d63692e6f72672f4f70656e436c617373726f6f6d732f446f637472696e654361636865457874656e73696f6e42756e646c652e737667)](https://travis-ci.org/OpenClassrooms/DoctrineCacheExtensionBundle)[![SensioLabsInsight](https://camo.githubusercontent.com/64c96b1bd9c1b19f60ebec4abedd31cbd6e60f2fc6f3648692c7ec2e157c622c/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f63343438383837342d386339632d343064622d396232652d3961386635313062626331342f6d696e692e706e67)](https://insight.sensiolabs.com/projects/c4488874-8c9c-40db-9b2e-9a8f510bbc14)[![Coverage Status](https://camo.githubusercontent.com/751d40faf6a456c293d8d7de66bf386344ac2b1af32b4ea86c93284a3bb298c3/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f4f70656e436c617373726f6f6d732f446f637472696e654361636865457874656e73696f6e2f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/OpenClassrooms/DoctrineCacheExtension?branch=master)

The DoctrineCacheExtensionBundle offers integration of the DoctrineCacheExtension library. DoctrineCacheExtension provides functionality to handle cache management:

- Default lifetime
- Fetch with a namespace
- Save with a namespace
- Cache invalidation through namespace strategy
- Data collector available in the profiler (not implemented yet)

See [OpenClassrooms/DoctrineCacheExtension](https://github.com/OpenClassrooms/DoctrineCacheExtension) for more details.

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

[](#installation)

This bundle can be installed using composer:

`composer require openclassrooms/doctrine-cache-extension-bundle`or by adding the package directly to the composer.json file.

```
{
    "require": {
        "openclassrooms/doctrine-cache-extension-bundle": "*"
    }
}
```

After the package has been installed, add the bundle and the DoctrineCacheBundle to the AppKernel.php file:

```
// in AppKernel::registerBundles()
$bundles = [
    // ...
    new new \Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle();
    new OpenClassrooms\Bundle\DoctrineCacheExtensionBundle\OpenClassroomsDoctrineCacheExtensionBundle(),
    // ...
)];
```

Configuration
-------------

[](#configuration)

```
# app/config/config.yml

doctrine_cache_extension:
    default_lifetime: 10 #optional, default = 0
```

To configure the cache providers, use the [DoctrineCacheBundle configuration](https://github.com/doctrine/DoctrineCacheBundle#provider-configuration). For example:

```
# app/config/config.yml

doctrine_cache:
    providers:
        a_cache_provider:
            type: array
```

Usage
-----

[](#usage)

```
$cache = $container->get('doctrine_cache.providers.a_cache_provider');

$cache->fetch($id);
$cache->fetchWithNamespace($id, $namespaceId);
$cache->save($id, $data);
$cache->saveWithNamespace($id, $data, $namespaceId);
$cache->invalidate($namespaceId);
```

Profiler
--------

[](#profiler)

The bundle provides data in the profiler such as the number of calls, kinds of calls, and more. (picture)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

3

Last Release

1526d ago

Major Versions

v1.0.0 → v2.0.02019-07-03

PHP version history (2 changes)v1.0.0PHP &gt;=5.6

v2.0.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/d82b0e2dcc1728eacb2b83c259311b5ea7c3253bd08f1341d45df79bdd9ba77a?d=identicon)[openclassrooms-admin](/maintainers/openclassrooms-admin)

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

---

Top Contributors

[![samokiss](https://avatars.githubusercontent.com/u/8625072?v=4)](https://github.com/samokiss "samokiss (4 commits)")[![DotnDev](https://avatars.githubusercontent.com/u/57391746?v=4)](https://github.com/DotnDev "DotnDev (2 commits)")[![kletord](https://avatars.githubusercontent.com/u/392556?v=4)](https://github.com/kletord "kletord (2 commits)")[![emilyreese](https://avatars.githubusercontent.com/u/4388323?v=4)](https://github.com/emilyreese "emilyreese (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/openclassrooms-doctrine-cache-extension-bundle/health.svg)

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[contao/manager-bundle

Provides the Contao Managed Edition

181.3M61](/packages/contao-manager-bundle)[padam87/rasterize-bundle

HTML to PDF Symfony bundle. Works with Puppeteer, PhantomJS, and more.

1579.4k](/packages/padam87-rasterize-bundle)

PHPackages © 2026

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