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

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

newrow/yii2-redis
=================

Redis Cache, Session and ActiveRecord for the Yii framework

2.0.7(8y ago)0119BSD-3-ClausePHP

Since Nov 30Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (13)Used By (0)

 [ ![](https://camo.githubusercontent.com/02b1da45b131f0863f30afb9041adaf19b83699cc45ceec804b03a571309a80c/687474703a2f2f646f776e6c6f61642e72656469732e696f2f6c6f676f636f6e746573742f38322e706e67) ](http://redis.io/)

Redis Cache, Session and ActiveRecord for Yii 2
===============================================

[](#redis-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.

Documentation is at [docs/guide/README.md](docs/guide/README.md).

[![Latest Stable Version](https://camo.githubusercontent.com/0401134bd257ab00ba8d727efd19c1e98c44eef9cf10929d1d9c0e5b2baf6441/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f796969322d72656469732f762f737461626c652e706e67)](https://packagist.org/packages/yiisoft/yii2-redis)[![Total Downloads](https://camo.githubusercontent.com/be1d192687b697a4257cb9063bf346533d42cfdccd79fd530ef3d4f8040dc195/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f796969322d72656469732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yiisoft/yii2-redis)[![Build Status](https://camo.githubusercontent.com/70c14091debe6d15307041d4cc2b7fb6f57f397aaac14f63175084c982894756/68747470733a2f2f7472617669732d63692e6f72672f796969736f66742f796969322d72656469732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yiisoft/yii2-redis)

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

[](#requirements)

At least redis version 2.6.12 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 yiisoft/yii2-redis

```

or add

```
"yiisoft/yii2-redis": "~2.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' => 'yii\redis\Connection',
            'hostname' => 'localhost',
            'port' => 6379,
            'database' => 0,
        ],
    ]
];
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~252 days

Total

11

Last Release

3081d ago

### Community

Maintainers

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

---

Top Contributors

[![qiangxue](https://avatars.githubusercontent.com/u/993322?v=4)](https://github.com/qiangxue "qiangxue (1909 commits)")[![cebe](https://avatars.githubusercontent.com/u/189796?v=4)](https://github.com/cebe "cebe (788 commits)")[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (648 commits)")[![klimov-paul](https://avatars.githubusercontent.com/u/1482054?v=4)](https://github.com/klimov-paul "klimov-paul (322 commits)")[![creocoder](https://avatars.githubusercontent.com/u/896494?v=4)](https://github.com/creocoder "creocoder (152 commits)")[![resurtm](https://avatars.githubusercontent.com/u/100198?v=4)](https://github.com/resurtm "resurtm (123 commits)")[![tonydspaniard](https://avatars.githubusercontent.com/u/566016?v=4)](https://github.com/tonydspaniard "tonydspaniard (95 commits)")[![Ragazzo](https://avatars.githubusercontent.com/u/1748844?v=4)](https://github.com/Ragazzo "Ragazzo (75 commits)")[![lucianobaraglia](https://avatars.githubusercontent.com/u/374554?v=4)](https://github.com/lucianobaraglia "lucianobaraglia (45 commits)")[![suralc](https://avatars.githubusercontent.com/u/730039?v=4)](https://github.com/suralc "suralc (42 commits)")[![pmoust](https://avatars.githubusercontent.com/u/2493339?v=4)](https://github.com/pmoust "pmoust (36 commits)")[![schmunk42](https://avatars.githubusercontent.com/u/649031?v=4)](https://github.com/schmunk42 "schmunk42 (26 commits)")[![slavcodev](https://avatars.githubusercontent.com/u/757721?v=4)](https://github.com/slavcodev "slavcodev (20 commits)")[![LarryUllman](https://avatars.githubusercontent.com/u/1674823?v=4)](https://github.com/LarryUllman "LarryUllman (18 commits)")[![kartik-v](https://avatars.githubusercontent.com/u/3592619?v=4)](https://github.com/kartik-v "kartik-v (16 commits)")[![tarasio](https://avatars.githubusercontent.com/u/1010578?v=4)](https://github.com/tarasio "tarasio (12 commits)")[![mohorev](https://avatars.githubusercontent.com/u/4974062?v=4)](https://github.com/mohorev "mohorev (12 commits)")[![bwoester](https://avatars.githubusercontent.com/u/309565?v=4)](https://github.com/bwoester "bwoester (12 commits)")[![crtlib](https://avatars.githubusercontent.com/u/4428231?v=4)](https://github.com/crtlib "crtlib (12 commits)")[![gevik](https://avatars.githubusercontent.com/u/434535?v=4)](https://github.com/gevik "gevik (10 commits)")

---

Tags

rediscachesessionyii2active-record

### Embed Badge

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

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

###  Alternatives

[yiisoft/yii2-redis

Redis Cache, Session and ActiveRecord for the Yii framework

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

PHPackages © 2026

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