PHPackages                             workerman/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. workerman/redis

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

workerman/redis
===============

v2.0.6(2mo ago)21275.4k↑86.7%10[4 issues](https://github.com/workerman-php/redis/issues)[1 PRs](https://github.com/workerman-php/redis/pulls)20MITPHPPHP &gt;=7

Since Sep 16Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/workerman-php/redis)[ Packagist](https://packagist.org/packages/workerman/redis)[ Docs](http://www.workerman.net)[ RSS](/packages/workerman-redis/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (2)Versions (20)Used By (20)

redis
=====

[](#redis)

Asynchronous redis client for PHP based on workerman.

Install
=======

[](#install)

```
composer require workerman/redis

```

Usage
=====

[](#usage)

```
require_once __DIR__ . '/vendor/autoload.php';
use Workerman\Redis\Client;
use Workerman\Worker;

$worker = new Worker('http://0.0.0.0:6161');

$worker->onWorkerStart = function() {
    global $redis;
    $redis = new Client('redis://127.0.0.1:6379');
};

$worker->onMessage = function($connection, $data) {
    global $redis;
    $redis->set('key', 'hello world');
    $redis->get('key', function ($result) use ($connection) {
        $connection->send($result);
    });
};

Worker::runAll();
```

Document
--------

[](#document)

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance81

Actively maintained with recent releases

Popularity47

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~115 days

Recently: every ~272 days

Total

19

Last Release

77d ago

Major Versions

v1.0.11 → v2.0.02023-01-24

PHP version history (3 changes)v1.0.0PHP &gt;=7.2

v1.0.1PHP &gt;=5.4

v2.0.0PHP &gt;=7

### Community

Maintainers

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

---

Top Contributors

[![walkor](https://avatars.githubusercontent.com/u/6073368?v=4)](https://github.com/walkor "walkor (27 commits)")[![gabacai](https://avatars.githubusercontent.com/u/6309312?v=4)](https://github.com/gabacai "gabacai (2 commits)")[![blesswarrior](https://avatars.githubusercontent.com/u/10300464?v=4)](https://github.com/blesswarrior "blesswarrior (1 commits)")

### Embed Badge

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

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

###  Alternatives

[nativephp/mobile

NativePHP for Mobile

1.1k102.1k147](/packages/nativephp-mobile)[joanhey/adapterman

Use any framework and application with Workerman.

85961.6k1](/packages/joanhey-adapterman)[workerman/channel

147910.7k24](/packages/workerman-channel)[topthink/think-worker

workerman extend for thinkphp

216239.3k9](/packages/topthink-think-worker)[workerman/crontab

A crontab written in PHP based on workerman

70191.4k71](/packages/workerman-crontab)[workerman/coroutine

Workerman coroutine

15438.5k10](/packages/workerman-coroutine)

PHPackages © 2026

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