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

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

ppanphper/yii2-redis
====================

Redis 3.x Cluster Cache, Session and ActiveRecord for the Yii framework

v1.0.0(7y ago)029BSD-3-ClausePHP

Since Jun 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ppanphper/yii2-redis)[ Packagist](https://packagist.org/packages/ppanphper/yii2-redis)[ RSS](/packages/ppanphper-yii2-redis/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Redis 3.x Cluster Cache, Session and ActiveRecord for Yii 2
===========================================================

[](#redis-3x-cluster-cache-session-and-activerecord-for-yii-2)

This extension provides the [redis](http://redis.io/) key-value store support for the [Yii framework 2.0](http://www.yiiframework.com). It includes a `Cache` and `Session` storage handler and implements the `ActiveRecord` pattern that allows you to store active records in redis.

For license information check the [LICENSE](LICENSE.md)-file.

[![Latest Stable Version](https://camo.githubusercontent.com/e971480a6f444c2f76fea09e10602548b98144ecfc6dd311ed1060d36369065f/68747470733a2f2f706f7365722e707567782e6f72672f7070616e70687065722f796969322d72656469732f762f737461626c652e706e67)](https://packagist.org/packages/ppanphper/yii2-redis)[![Total Downloads](https://camo.githubusercontent.com/c92dd941b12ae20c23af879b69e016b2e776c88e15fa8f2ab91bcb72322f5371/68747470733a2f2f706f7365722e707567782e6f72672f7070616e70687065722f796969322d72656469732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/ppanphper/yii2-redis)[![Build Status](https://camo.githubusercontent.com/8d541176b20f4d93bb670e849ca83ea90ab8003dc5bcd1ff45451ce4c7895d44/68747470733a2f2f7472617669732d63692e6f72672f7070616e70687065722f796969322d72656469732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ppanphper/yii2-redis)

Requirements
------------

[](#requirements)

At least redis version 3.0 is required for all components to work properly.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist ppanphper/yii2-redis

```

or add

```
"ppanphper/yii2-redis": "^1.0.0"
```

to the require section of your composer.json.

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

[](#configuration)

To use this extension, you have to configure the Connection class in your application configuration:

```
return [
    //....
    'components' => [
        'redis' => [
            'class' => 'ppanphper\redis\Connection',
            'servers' => [
                '10.155.20.169:6379',
                '10.155.20.167:6391',
                '10.155.20.168:6379',
                '10.155.20.167:6380',
//                'localhost:6379',
            ],
            'prefix' => '',
            'database' => 0,
        ],

    ]
];
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

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

2897d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/36172dd8293db6bebf2035fb4a98ae3d96368de4db7a382ffa85273db65345e6?d=identicon)[ppanphper](/maintainers/ppanphper)

---

Top Contributors

[![ppanphper](https://avatars.githubusercontent.com/u/6057923?v=4)](https://github.com/ppanphper "ppanphper (4 commits)")

### Embed Badge

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

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

###  Alternatives

[devgroup/yii2-tag-dependency-helper

Helper for unifying cache tag names with invalidation support in yii2

34507.4k7](/packages/devgroup-yii2-tag-dependency-helper)[bazilio/yii2-async

Provides translucent api for moving large tasks out of request context

6248.8k2](/packages/bazilio-yii2-async)[lajax/yii2-asset-minifier

Runtime minification and combination of asset files.

1010.4k](/packages/lajax-yii2-asset-minifier)

PHPackages © 2026

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