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. [Database &amp; ORM](/categories/database)
4. /
5. bazingarj/redis\_sentinel

ActivePackage[Database &amp; ORM](/categories/database)

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 today

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 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

2064d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12197235?v=4)[Rahul juneja](/maintainers/bazingarj)[@bazingarj](https://github.com/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

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jenner/redis_sentinel

redis sentinel client for php 5.3+

50288.1k](/packages/jenner-redis-sentinel)[clcbws/laravel-schema-sentinel

Detect and fix database schema drift in Laravel by comparing migrations with the live database state.

591.9k](/packages/clcbws-laravel-schema-sentinel)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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