PHPackages                             bazingarj/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. bazingarj/redis\_sentinel

ActivePackage

bazingarj/redis\_sentinel
=========================

redis sentinel client for php 5.3+

1.1.1(5y ago)0113MITPHPPHP &gt;=5.3.0

Since Sep 28Pushed 5y agoCompare

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

READMEChangelog (1)DependenciesVersions (5)Used By (0)

redis-sentinel
==============

[](#redis-sentinel)

redis-sentinel client for php based on phpredis extension.

examples
--------

[](#examples)

Get Redis master address and create Redis object:

```
$sentinel = new \bazingarj\RedisSentinel\Sentinel();
$sentinel->connect('127.0.0.1', 6379);
$address = $sentinel->getMasterAddrByName('mymaster');

$redis = new Redis();
$redis->connect($address['ip'], $address['port']);
$info = $redis->info();
print_r($info);
```

Create redis-sentinel pool and create Redis object:

```
$sentinel_pool = new \bazingarj\RedisSentinel\SentinelPool();
$sentinel_pool->addSentinel('127.0.0.1', 26379);
$sentinel_pool->addSentinel('127.0.0.1', 26380);

$address = $sentinel_pool->master('mymaster');
print_r($address);

$redis = $sentinel_pool->getRedis('mymaster');
$info = $redis->info();
print_r($info);
```

In order to prevent redis/sentinel to wait too long for connections in case of issues with the Redis backend it's advisable to use a timeout (in seconds):

```
$sentinel_pool->addSentinel('127.0.0.1', 26380, 1.0); # 1 second timeout
```

Forked From: ,

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.5% 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 ~21 days

Total

3

Last Release

2008d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/56263d2584d8b0a86018587e462bc1f8133c0367e351830a2778f74ce8e991ee?d=identicon)[bazingarj](/maintainers/bazingarj)

---

Top Contributors

[![white-poto](https://avatars.githubusercontent.com/u/4362540?v=4)](https://github.com/white-poto "white-poto (65 commits)")[![bazingarj](https://avatars.githubusercontent.com/u/12197235?v=4)](https://github.com/bazingarj "bazingarj (7 commits)")[![RobinUS2](https://avatars.githubusercontent.com/u/1712500?v=4)](https://github.com/RobinUS2 "RobinUS2 (4 commits)")

---

Tags

sentinelredis sentinelredis sentinel clientsentinel pool client

### Embed Badge

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

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

###  Alternatives

[jenner/redis_sentinel

redis sentinel client for php 5.3+

50272.9k](/packages/jenner-redis-sentinel)[monospice/laravel-redis-sentinel-drivers

Redis Sentinel integration for Laravel and Lumen.

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

Sentinel client for the popular php redis client

77392.9k5](/packages/jamescauwelier-psredis)[srlabs/centaur

An opinionated implementation of Cartalyst's Sentinel for Laravel 5

6058.0k](/packages/srlabs-centaur)[pyurin/yii2-redis-ha

Basic redis-ha client

18272.7k](/packages/pyurin-yii2-redis-ha)

PHPackages © 2026

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