PHPackages                             pompdelux/phpredis-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. pompdelux/phpredis-bundle

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

pompdelux/phpredis-bundle
=========================

Adds phpredis to symfony.

1.0.2(11y ago)02.4k1MITPHPPHP &gt;=5.5

Since Jun 30Pushed 11y ago3 watchersCompare

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

READMEChangelog (3)DependenciesVersions (4)Used By (1)

PHPRedisBundle
==============

[](#phpredisbundle)

This bundle brings [phpredis](https://github.com/nicolasff/phpredis) to your [Symfony2](http://symfony.com/) app.

It allows you to easily create multiple clients pointing to different databases and/or servers.

Install:
--------

[](#install)

1. Add PHPRedisBundleBundle to your dependencies:

    ```
     // composer.json
     {
         // ...
         "require": {
             // ...
             "pompdelux/phpredis-bundle": "1.*"
         }
     }

    ```
2. Use Composer to download and install the bundle:

    ```
     $ php composer.phar update pompdelux/phpredis-bundle

    ```
3. Register the bundle in your application:

    ```
     // app/AppKernel.php
     class AppKernel extends Kernel
     {
         // ...
         public function registerBundles()
         {
             $bundles = array(
                 // ...
                 new Pompdelux\PHPRedisBundle\PHPRedisBundle(),
             );
         }
     }

    ```
4. Add the configuration needed to use the bundle:

    ```
     // config.yml
     php_redis:
         class:
             service_name:
                 host:     127.0.0.1
                 port:     6379
                 prefix:   ''
                 database: 0
                 timeout:  0
                 auth:     null
                 skip_env: false
             some_other_service:
                 host:      localhost
                 port:      6379
                 ....

    ```

Two things to note:

1. If `skip_env` is not set to `false` the environment will be part of the prefix for all keys.
2. `Redis::SERIALIZER_PHP` will be used as serializer unless you override it via `setOption()`

Usage:
------

[](#usage)

```
$redis = $this->container->get('pdl.phpredis.service_name');
$redis->set('key', 'value');
echo $redis->get('key');
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

4206d ago

### Community

Maintainers

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

---

Tags

symfonyredisphpredis

### Embed Badge

![Health badge](/badges/pompdelux-phpredis-bundle/health.svg)

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

###  Alternatives

[cache/redis-adapter

A PSR-6 cache implementation using Redis (PhpRedis). This implementation supports tags

523.9M27](/packages/cache-redis-adapter)[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)[vetruvet/laravel-phpredis

Use phpredis as the redis connection in Laravel

43123.7k](/packages/vetruvet-laravel-phpredis)[mmoreram/rsqueue-bundle

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

5360.7k1](/packages/mmoreram-rsqueue-bundle)[jrschumacher/symfony-redis-session-handler

Redis Session Handler Symfony HttpFoundation Component

1261.1k](/packages/jrschumacher-symfony-redis-session-handler)

PHPackages © 2026

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