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

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

dawen/phpredis-bundle
=====================

A PhpRedis bundle for Symfony2

v0.5.1(10y ago)219.9k2[2 issues](https://github.com/da-wen/PhpRedisBundle/issues)[1 PRs](https://github.com/da-wen/PhpRedisBundle/pulls)MITPHPPHP &gt;=5.3.3

Since Jan 24Pushed 8y agoCompare

[ Source](https://github.com/da-wen/PhpRedisBundle)[ Packagist](https://packagist.org/packages/dawen/phpredis-bundle)[ Docs](https://github.com/da-wen/PhpRedisBundle)[ RSS](/packages/dawen-phpredis-bundle/feed)WikiDiscussions master Synced 3d ago

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

PhpRedisBundle
==============

[](#phpredisbundle)

Symfony 2 Bundle for phpredis extension

---

!!!WARNING
==========

[](#warning)

This bundle is under construction. It is highly recommended not using this bundle for production

---

WORKING METHODS
===============

[](#working-methods)

- hashes: hDel, hExists, hGet, hGetAll, hIncrBy, hIncrByFloat, hKeys, hLen, hMGet, hMSet, hSet
- keys: del, dump, exists, expire, expireAt, keys, move, object, persist, randomKey, rename, renameNx, type, sort, ttl, restore
- lists: brPop, blPop, brPoplPush, lGet, lGetRange, lInsert, lLen, lIndex, lPush, lPushx, lRange, lRem, lRemove, lSet, lSize, lTrim, ListTrim, rPop, rPopLPush, rPush, rPushx
- sets: sAdd, sCard, sContains, sDiff, sDiffStore, sGetMembers, sInter, sInterStore, sIsMember, sMembers, sMove, sPop, sRandMember, sRem, sRemove, sSize, sUnion, sUnionStore
- sorted sets: zAdd, zCard, zCount, zIncrBy, zInter, zRange, zRangeByScore, zRevRangeByScore, zRank, zRevRank, zSize
- strings: append, bitCount, decr, get, getBit, getRange, getSet, incr, incrByFloat, mget, mset, set, setBit, setex, setnx, setRange, strlen
- server: bgrewriteaof, bgsave, config, dbSize, flushAll, flushDB, info, lastSave, resetStat, save, slaveOf, time, slowlog
- connection: auth, close, echo (cEcho), getOption, ping, select, setOption

---

Missing Integration Tests
=========================

[](#missing-integration-tests)

- keys: sort (waiting for sadd function)
- lists: blPop, brPop,
- server: resetStats, slaveOf

Methods Ignored
===============

[](#methods-ignored)

- connection: connect, pconnect, open, popen
- strings: delete, incrBy, decrBy, getMultiple, mSetNx, psetex
- keys: getKeys, setTimeout, pexpire, pexpireAt, renameKey, pttl

Methods not working
===================

[](#methods-not-working)

- strings: bitOp
- keys: migrate

Method Informations
===================

[](#method-informations)

- set: parameter timeout is defined as float in docbloc and function. It is an int or long. Float will rase an error
- bitOf: always returns 0
- migrate: returns false when successful
- lTrim: listTrim: return value is commented as array. Bool will be returned
- lPush: if optional parameter will be null, it inserts plank strings
- rPush: if optional parameter will be null, it inserts plank strings
- sDiff: Third param seems to be ignored
- sDiffStore: Third param seems to be ignored
- sInter: Third param seems to be ignored
- sInterStore: Third param seems to be ignored
- zInter: outKey is not stored, weight is not working

---

Configuration
=============

[](#configuration)

here is a first sample configuration

be aware of the logging flag. When you run many redis commands and logging is enabled on production system, you could get a memory limit exceeded error. The logger redis client is collecting every command in a data collector.

**config.yml**

```
php_redis:
    clients:
        default:
            host: localhost
            port: ~
            db: 0
            pconnect: true
            logging: true
            connection_timeout: 1
        importstatus:
            host: localhost
            port: ~
            db: 1
            pconnect: true
            logging: true

```

---

Testing within Symfony2
=======================

[](#testing-within-symfony2)

for running the unit and integration tests add test parameters to your config: **config\_test.yml**

```
parameters:
  redis:
    host: localhost
    port: 6379
    db: 10
    db2: 9

```

Please keep in mind, that you have to run your own redis server.

**Information** The flushAll command will be performed in tests. It would be better to run an own instance for the tests

---

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.9% 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 ~97 days

Recently: every ~160 days

Total

8

Last Release

3808d ago

### Community

Maintainers

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

---

Top Contributors

[![da-wen](https://avatars.githubusercontent.com/u/3296502?v=4)](https://github.com/da-wen "da-wen (101 commits)")[![SHyx0rmZ](https://avatars.githubusercontent.com/u/654223?v=4)](https://github.com/SHyx0rmZ "SHyx0rmZ (16 commits)")[![aurimasniekis](https://avatars.githubusercontent.com/u/15481?v=4)](https://github.com/aurimasniekis "aurimasniekis (2 commits)")

---

Tags

symfonyredisnosqlphpredis

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/dawen-phpredis-bundle/health.svg)](https://phpackages.com/packages/dawen-phpredis-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)[cache/redis-adapter

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

523.9M27](/packages/cache-redis-adapter)[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)[ack/notification-bundle

Symfony real time notification system

259.3k](/packages/ack-notification-bundle)

PHPackages © 2026

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