PHPackages                             xp-forge/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. [Caching](/categories/caching)
4. /
5. xp-forge/redis

ActiveLibrary[Caching](/categories/caching)

xp-forge/redis
==============

Redis Protocol

v1.3.0(2w ago)12.3k1BSD-3-ClausePHPPHP &gt;=7.0.0CI passing

Since Aug 24Pushed 2w ago1 watchersCompare

[ Source](https://github.com/xp-forge/redis)[ Packagist](https://packagist.org/packages/xp-forge/redis)[ Docs](http://xp-framework.net/)[ RSS](/packages/xp-forge-redis/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (9)Dependencies (8)Versions (10)Used By (1)

Redis protocol
==============

[](#redis-protocol)

[![Build status on GitHub](https://github.com/xp-forge/redis/workflows/Tests/badge.svg)](https://github.com/xp-forge/redis/actions)[![XP Framework Module](https://raw.githubusercontent.com/xp-framework/web/master/static/xp-framework-badge.png)](https://github.com/xp-framework/core)[![BSD Licence](https://raw.githubusercontent.com/xp-framework/web/master/static/licence-bsd.png)](https://github.com/xp-framework/core/blob/master/LICENCE.md)[![Requires PHP 7.0+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-7_0plus.svg)](http://php.net/)[![Supports PHP 8.0+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-8_0plus.svg)](http://php.net/)[![Latest Stable Version](https://camo.githubusercontent.com/7182ee8cd1dabdfc68f59bafc66940a743f8c3a500abcea7a20a28c9cfe9ea4f/68747470733a2f2f706f7365722e707567782e6f72672f78702d666f7267652f72656469732f76657273696f6e2e737667)](https://packagist.org/packages/xp-forge/redis)

[Redis protocol](https://redis.io/topics/protocol) implementation.

Example
-------

[](#example)

```
use io\redis\RedisProtocol;

$protocol= new RedisProtocol('redis://localhost');
$protocol->command('SET', 'key', 'value');

$value= $protocol->command('GET', 'key');
```

The port defaults to 6379 and can be changed by adding it as follows: *redis://localhost:16379*. To use authentication, pass it as username in the connection string, e.g. *redis://secret@localhost*.

Pub/Sub
-------

[](#pubsub)

```
use io\redis\RedisProtocol;

$protocol= new RedisProtocol('redis://localhost');
$protocol->command('SUBSCRIBE', 'messages');

while ($message= $protocol->receive()) {
  Console::writeLine('Received ', $message);
}
```

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance96

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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 ~304 days

Recently: every ~551 days

Total

9

Last Release

20d ago

Major Versions

v0.3.0 → v1.0.02019-12-01

PHP version history (2 changes)v0.1.0PHP &gt;=5.6.0

v1.0.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/07d18d882c8b4aaf3466432f64018214f2771eda333202175431ee7233795376?d=identicon)[thekid](/maintainers/thekid)

---

Top Contributors

[![thekid](https://avatars.githubusercontent.com/u/696742?v=4)](https://github.com/thekid "thekid (37 commits)")

---

Tags

redisrespxp-frameworkmodulexp

### Embed Badge

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

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

PHPackages © 2026

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