PHPackages                             rezzza/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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. rezzza/bitter-bundle

ActiveSymfony-bundle[Logging &amp; Monitoring](/categories/logging)

rezzza/bitter-bundle
====================

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

172.2k3[2 issues](https://github.com/rezzza/BitterBundle/issues)PHP

Since Jul 26Pushed 12y ago4 watchersCompare

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

READMEChangelogDependenciesVersions (1)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

27

—

LowBetter than 49% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/47c3006a9e7662031ee9d3fa064238fef88479fd7d60f18dd47f038fbbd7dc5a?d=identicon)[steph\_py](/maintainers/steph_py)

![](https://avatars.githubusercontent.com/u/176363?v=4)[Jérémy Romey](/maintainers/jeremyFreeAgent)[@jeremyFreeAgent](https://github.com/jeremyFreeAgent)

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

---

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)")

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.1k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M93](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M137](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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