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

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

shyevsa/yii2-redis-sentinel
===========================

Yii2 Redis Connection with auto resolve redis `host` and `port` master from redis-sentinel

v0.1.2(1y ago)212.1k↓75.5%1BSD-3-ClausePHPPHP &gt;=7.2

Since May 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/shyevsa/yii2-redis-sentinel)[ Packagist](https://packagist.org/packages/shyevsa/yii2-redis-sentinel)[ RSS](/packages/shyevsa-yii2-redis-sentinel/feed)WikiDiscussions main Synced 1mo ago

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

Yii2 Redis Connection using Sentinel
====================================

[](#yii2-redis-connection-using-sentinel)

This is an extention of [yiisoft/yii2-redis](https://github.com/yiisoft/yii2-redis)to use Sentinel as Source of Connection parameter.

Based on [pyurin/yii2-redis-ha](https://github.com/pyurin/yii2-redis-ha). It only work on sentinel, and unable to connect to redis host without sentinel.

Instalation
-----------

[](#instalation)

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

Either run

```
php composer.phar require --prefer-dist shyevsa/yii2-redis-sentinel:"*"

```

or add

```
"shyevsa/yii2-redis-sentinel":"*"
```

to the require section of your composer.json.

Usage
-----

[](#usage)

```
'components'=>[
    'redis' => [
        'class' => \shyevsa\redis\Connection::class,
        'master_name' => 'mymaster',
        'database' => 0
        'sentinels' => [
            '10.10.4.1',
            '10.10.4.2',
            [
              'hostname'=>'127.0.0.1',
              'port'=>3000,
            ],
        ],
    ]
]
```

The `sentinels` use the same connection parameter as regular `redis` connection check [yiisoft/yii2-redis](https://github.com/yiisoft/yii2-redis) for detail

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

Every ~614 days

Total

3

Last Release

602d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/92ded403d702b5f456df07710f7cebdf41bfe66fc96dd049c3f7a3f811e3a163?d=identicon)[shyevsa](/maintainers/shyevsa)

---

Top Contributors

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

---

Tags

redisyii2sentinel

### Embed Badge

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

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

###  Alternatives

[pyurin/yii2-redis-ha

Basic redis-ha client

18272.7k](/packages/pyurin-yii2-redis-ha)[monospice/laravel-redis-sentinel-drivers

Redis Sentinel integration for Laravel and Lumen.

103830.5k](/packages/monospice-laravel-redis-sentinel-drivers)

PHPackages © 2026

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