PHPackages                             snproject/bitter-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. snproject/bitter-bundle

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

snproject/bitter-bundle
=======================

Implements a powerful analytics Symfony Bundle based on Bitter library using Redis bitmaps

1.0.0(11y ago)118MITPHPPHP &gt;=5.3.3

Since Dec 1Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (2)Used By (0)

BitterBundle Documentation
==========================

[](#bitterbundle-documentation)

[![https://secure.travis-ci.org/rezzza/BitterBundle.png?branch=master](https://camo.githubusercontent.com/ad02174a2756374d369cbd4adfca948bc20e74bbd0e50fa4e1f8382044e2290e/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f72657a7a7a612f42697474657242756e646c652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/rezzza/BitterBundle)[![https://insight.sensiolabs.com/projects/15882c8a-0875-4153-bc00-603e7cee2ab0/mini.png](https://camo.githubusercontent.com/8efdcd8ec8068d48c6e731b8aadc1a01a1739ae91cb504f2d6d29942f18ec235/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f31353838326338612d303837352d343135332d626330302d3630336537636565326162302f6d696e692e706e67)](https://insight.sensiolabs.com/projects/15882c8a-0875-4153-bc00-603e7cee2ab0)BitterBundle makes it easy to use the [Bitter library](https://github.com/jeremyFreeAgent/Bitter/) to implement real-time highly-scalable analytics using Redis bitmaps in your Symfony 2 project. Please see the [Bitter library website](http://bitter.free-agent.fr/) for more info and documentation about this project.

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

[](#installation)

Use [Composer](https://github.com/composer/composer/) to install: `rezzza/bitter-bundle`.

In your `composer.json` you should have:

```
{
    "require": {
        "rezzza/bitter-bundle": "*"
    }
}
```

Then update your `AppKernel.php` to register the bundle with:

```
new Rezzza\BitterBundle\RezzzaBitterBundle()
```

Bitter uses [Redis](http://redis.io) (version &gt;=2.6).

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

[](#configuration)

Using [SncRedisBundle](https://github.com/snc/SncRedisBundle) redis client:

```
rezzza_bitter:
    redis_client: snc_redis.default
```

Using custom redis client:

```
rezzza_bitter:
    redis_client: your.very.best.redis.client
```

You can also configure custom values for `prefix_key` and `expire_timeout`:

```
rezzza_bitter:
    redis_client: snc_redis.default
    prefix_key: my_app  # default - bitter
    expire_timeout: 300 # default - 60
```

Basic usage
-----------

[](#basic-usage)

Get Bitter:

```
$bitter = $this->container->get('rezzza.bitter');
```

Mark user 123 as active and has played a song:

```
$bitter->mark('active', 123);
$bitter->mark('song:played', 123);
```

Note

Please look at [Bitter](https://github.com/jeremyFreeAgent/Bitter/) for all examples.

Todo
----

[](#todo)

- Add dashboard controller.
- Add tests

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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

Unknown

Total

1

Last Release

4184d ago

### Community

Maintainers

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

---

Top Contributors

[![jeremyFreeAgent](https://avatars.githubusercontent.com/u/176363?v=4)](https://github.com/jeremyFreeAgent "jeremyFreeAgent (21 commits)")[![stephpy](https://avatars.githubusercontent.com/u/232744?v=4)](https://github.com/stephpy "stephpy (9 commits)")[![tonypiper](https://avatars.githubusercontent.com/u/206124?v=4)](https://github.com/tonypiper "tonypiper (5 commits)")

---

Tags

symfonybundleredisanalyticsbitter

### Embed Badge

![Health badge](/badges/snproject-bitter-bundle/health.svg)

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

###  Alternatives

[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[symfony-bundles/redis-bundle

Symfony Redis Bundle

271.1M5](/packages/symfony-bundles-redis-bundle)[resquebundle/resque

A Symfony 4 bundle to manage Resque job queues

51137.1k1](/packages/resquebundle-resque)[mmoreram/rsqueue-bundle

Redis Symfony2 Queue Bundle, a simple and soft redis based message queue for symfony2

5360.7k1](/packages/mmoreram-rsqueue-bundle)[symfony-bundles/queue-bundle

Symfony Queue Bundle

3219.4k1](/packages/symfony-bundles-queue-bundle)[symfony-bundles/event-queue-bundle

Symfony EventQueue Bundle

2512.7k](/packages/symfony-bundles-event-queue-bundle)

PHPackages © 2026

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