PHPackages                             pavle/yii2-redis - 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. pavle/yii2-redis

ActiveYii2-extension[Caching](/categories/caching)

pavle/yii2-redis
================

Yii 2 Redis extension with predis

v1.1.1(8y ago)445.1k↓55.8%2BSD-3-ClausePHPPHP &gt;=5.4.0

Since May 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Liv1020/yii2-redis)[ Packagist](https://packagist.org/packages/pavle/yii2-redis)[ RSS](/packages/pavle-yii2-redis/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

yii2-redis
==========

[](#yii2-redis)

Using [Predis](https://github.com/nrk/predis) and yii2 combination This extension is fully compatible with the yii2-redis extension, and you can use predis only if you replace the configuration

Usage
=====

[](#usage)

1. Change your redis component configuration, There is no need to change any of the previous code, That's all right.

```
'redis' => [
    'class' => pavle\yii\redis\Connection::class,
    'parameters' => ['tcp://xx.xx.x.xx:30001', 'tcp://xx.xx.x.xx:30002', 'tcp://xx.xx.x.xx:30003'],
    //'parameters' => 'tcp://192.168.2.240:6379',
    'options' => ['cluster' => 'redis'],
],

```

2.More usage [yii2-redis Document](https://github.com/yiisoft/yii2-redis/blob/master/docs/guide/README.md)

3.Using the predis client

```
Yii::$app->redis->getClient();

```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community5

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

Total

3

Last Release

3235d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eca8d58fc93deff22b5152606099bdcef7a0d3da0bf3a8a8d585c58dfede9bde?d=identicon)[Pavle Lee](/maintainers/Pavle%20Lee)

---

Tags

predisredis-clusterredis-sentinelyii2-extensionyii2-redisredispredisyii

### Embed Badge

![Health badge](/badges/pavle-yii2-redis/health.svg)

```
[![Health](https://phpackages.com/badges/pavle-yii2-redis/health.svg)](https://phpackages.com/packages/pavle-yii2-redis)
```

###  Alternatives

[predis/predis-async

Asynchronous version of Predis

370354.5k](/packages/predis-predis-async)[predis/service-provider

Predis service provider for the Silex microframework

68548.8k1](/packages/predis-service-provider)[jamescauwelier/psredis

Sentinel client for the popular php redis client

78399.4k5](/packages/jamescauwelier-psredis)[cache/predis-adapter

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

242.6M13](/packages/cache-predis-adapter)[contributte/redis

Redis client integration into Nette framework

191.7M2](/packages/contributte-redis)[maykonn/codeigniter-predis

The CodeIgniter Redis package

1310.9k](/packages/maykonn-codeigniter-predis)

PHPackages © 2026

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