PHPackages                             leapt/cache-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. leapt/cache-bundle

Abandoned → [symfony/cache](/?search=symfony%2Fcache)ArchivedSymfony-bundle[Caching](/categories/caching)

leapt/cache-bundle
==================

Symfony LeaptCacheBundle

v2.0.1(7y ago)0241MITPHPPHP &gt;=5.3.2

Since Aug 28Pushed 6y ago1 watchersCompare

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

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

Note: this bundle is not maintained anymore, consider using [symfony/cache](https://symfony.com/doc/current/cache.html) directly.

Introduction
============

[](#introduction)

This bundle is used to provide access to cache drivers.

This is a work in progress with two drivers: Memcached and APC.

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

[](#installation)

1. Add this bundle to your `vendor/` dir:

    Add the following line in your `composer.json` file:

    ```
     "leapt/cache-bundle": "~1.0",

    ```

    Run composer:

    ```
     composer update leapt/cache-bundle

    ```
2. Add this bundle to your application's kernel:

    ```
     // app/ApplicationKernel.php
     public function registerBundles()
     {
         return array(
             // ...
             new Leapt\CacheBundle\LeaptCacheBundle(),
             // ...
         );
     }

    ```
3. Add the configuration in your config.yml file

    ```
     leapt_cache:
         namespace: yournamespace
         caches:
             tweets:
                 type: memcached
                 options:
                     server: localhost
                     port: 11211
                     ttl: 86400
             flickr:
                 type: memcached
                 options:
                     server: localhost
                     port: 11211
                     ttl: 45632

    ```

Usage
-----

[](#usage)

```
    $cacheManager = $this->get('leapt_cache.manager');

    $cache = $cacheManager->getCache('tweets');

    if ($cache->isEnabled()) {
        if (false === $tweets = $cache->get('tweets')) {
            $tweets = $this->getTweets();
            $cache->set('tweets', $tweets);
        }
    } else {
        $tweets = $this->getTweets();
    }

```

Running the tests
-----------------

[](#running-the-tests)

Before running the tests, you will need to install the bundle dependencies. Do it using composer :

```
curl -s http://getcomposer.org/installer | php
php composer.phar --dev install

```

Then you can simply launch phpunit

```
phpunit

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 83.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 ~400 days

Total

4

Last Release

2704d ago

Major Versions

v1.0.1 → v2.0.02017-12-04

### Community

Maintainers

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

---

Top Contributors

[![jmsche](https://avatars.githubusercontent.com/u/3929498?v=4)](https://github.com/jmsche "jmsche (5 commits)")[![pvanliefland](https://avatars.githubusercontent.com/u/690667?v=4)](https://github.com/pvanliefland "pvanliefland (1 commits)")

---

Tags

bundlephpsymfonysymfony-bundlecache

### Embed Badge

![Health badge](/badges/leapt-cache-bundle/health.svg)

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

###  Alternatives

[beryllium/cachebundle

Provides an interface to Memcache for Symfony2 applications

32135.8k](/packages/beryllium-cachebundle)[tbbc/cache-bundle

Symfony Bundle - Cache abstraction and method annotations for controlling cache

3613.0k](/packages/tbbc-cache-bundle)

PHPackages © 2026

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