PHPackages                             jenner/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. [HTTP &amp; Networking](/categories/http)
4. /
5. jenner/redis\_sentinel

ActivePackage[HTTP &amp; Networking](/categories/http)

jenner/redis\_sentinel
======================

redis sentinel client for php 5.3+

0.3.1(5y ago)50272.9k—5.2%18MITPHPPHP &gt;=5.3.0

Since Dec 29Pushed 5y ago5 watchersCompare

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

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

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

[](#redis-sentinel)

[![Latest Stable Version](https://camo.githubusercontent.com/1d54300610ad1303668a93bb82dbf0f167ce5560d83fe5b699df1b27c0d29a0e/68747470733a2f2f706f7365722e707567782e6f72672f6a656e6e65722f72656469735f73656e74696e656c2f762f737461626c65)](https://packagist.org/packages/jenner/simple_fork)[![Total Downloads](https://camo.githubusercontent.com/052fe4b90d40ae0606b6d6d04391c50435a876251f83cdd1e9f134fb61cf2218/68747470733a2f2f706f7365722e707567782e6f72672f6a656e6e65722f72656469735f73656e74696e656c2f646f776e6c6f616473)](https://packagist.org/packages/jenner/simple_fork)[![Latest Unstable Version](https://camo.githubusercontent.com/dc81375d501c1aa2075ce9da2f56f3906ac39f7205b80d5f1700b225ad6c8795/68747470733a2f2f706f7365722e707567782e6f72672f6a656e6e65722f72656469735f73656e74696e656c2f762f756e737461626c65)](https://packagist.org/packages/jenner/simple_fork)[![License](https://camo.githubusercontent.com/74d406d83b7fb30ff27de34a07e16b51f6c013806abc2e0e50c1c92dc5d49b3d/68747470733a2f2f706f7365722e707567782e6f72672f6a656e6e65722f72656469735f73656e74696e656c2f6c6963656e7365)](https://packagist.org/packages/jenner/simple_fork)[![travis](https://camo.githubusercontent.com/7b46d1a9e413973400c66d53d52579279eba6ee970a3530e1b56fa977d7643ce/68747470733a2f2f7472617669732d63692e6f72672f687579616e70696e672f72656469732d73656e74696e656c2e737667)](https://travis-ci.org/huyanping/simple-fork-php)

redis-sentinel client for php based on phpredis extension.

examples
--------

[](#examples)

Get Redis master address and create Redis object:

```
$sentinel = new \Jenner\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 \Jenner\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
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity48

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.3% 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 ~466 days

Total

4

Last Release

2029d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d132b55d12cd603f8cce9c152999e2b3f98748d56fe8a21adf62d5830d88d87?d=identicon)[huyanping](/maintainers/huyanping)

---

Top Contributors

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

---

Tags

redis-sentinelredis-sentinel-clientredis-sentinelssentinelredis sentinelsentinel clientredis sentinel client

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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