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

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

etitov-cm/yii2-redis
====================

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

2.0.15(5y ago)03.6k1BSD-3-ClausePHP

Since May 25Pushed 5y agoCompare

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

READMEChangelog (10)Dependencies (2)Versions (13)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/1b47a2978c7586164b13d06f9903f8ecbe90091c043f59a4ba27cc345615ac9f/68747470733a2f2f706f7365722e707567782e6f72672f657469746f762d636d2f796969322d72656469732f762f737461626c652e706e67)](https://packagist.org/packages/etitov-cm/yii2-redis)[![Total Downloads](https://camo.githubusercontent.com/b93fa2d75afba99c17bec400cc362fc1d8b724dc29a4c3b4b38d475202d8e0b0/68747470733a2f2f706f7365722e707567782e6f72672f657469746f762d636d2f796969322d72656469732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/etitov-cm/yii2-redis)[![Build Status](https://camo.githubusercontent.com/59f9eda5f1177610618e97d017aaddb2dfa1313ae4cedcbc8e914857b0510a91/68747470733a2f2f7472617669732d63692e6f72672f657469746f762d636d2f796969322d72656469732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/etitov-cm/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 etitov-cm/yii2-redis

```

or add

```
"etitov-cm/yii2-redis": "*"
```

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' => 'etitov\redis\Connection',
            'master' => [
                '10.155.20.169:6379',
                '10.155.20.167:6391',
                '10.155.20.168:6379',
                '10.155.20.167:6380',
//                'localhost:6379',
            ],
            'database' => 0,
        ],

    ]
];
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 72.7% 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 ~174 days

Recently: every ~13 days

Total

12

Last Release

2091d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/62173202?v=4)[etitov-cm](/maintainers/etitov-cm)[@etitov-cm](https://github.com/etitov-cm)

---

Top Contributors

[![etitov-cm](https://avatars.githubusercontent.com/u/62173202?v=4)](https://github.com/etitov-cm "etitov-cm (16 commits)")[![AlexandrPronin](https://avatars.githubusercontent.com/u/19327097?v=4)](https://github.com/AlexandrPronin "AlexandrPronin (6 commits)")

---

Tags

rediscachesessionyii2active-record

### Embed Badge

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

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

###  Alternatives

[yiisoft/yii2-redis

Redis Cache, Session and ActiveRecord for the Yii framework

48011.7M245](/packages/yiisoft-yii2-redis)

PHPackages © 2026

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