PHPackages                             llegaz/redis-ultimate - 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. llegaz/redis-ultimate

ActiveLibrary[Caching](/categories/caching)

llegaz/redis-ultimate
=====================

Sets and MQ oparations for Redis

0.1.2(1w ago)3150↓100%MITPHPPHP &gt;=8.1

Since Apr 29Pushed 1w ago1 watchersCompare

[ Source](https://github.com/llegaz/RedisUltimate)[ Packagist](https://packagist.org/packages/llegaz/redis-ultimate)[ RSS](/packages/llegaz-redis-ultimate/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

🔴 RedisUltimate — Implementation Roadmap
========================================

[](#-redisultimate--implementation-roadmap)

> PHP library for Redis sets, MQ, and more — ordered by priority.

---

1️⃣ Sets — Core Operations
--------------------------

[](#1️⃣-sets--core-operations)

```
sadd(string $key, mixed ...$members): int      // Add one or more members
srem(string $key, mixed ...$members): int      // Remove one or more members
smembers(string $key): array                   // Return all members
sismember(string $key, mixed $member): bool    // Check if a member exists
scard(string $key): int                        // Count members
```

---

2️⃣ Sets — Inter-set Operations
-------------------------------

[](#2️⃣-sets--inter-set-operations)

```
sinter(string ...$keys): array                 // Intersection
sunion(string ...$keys): array                 // Union
sdiff(string $key, string ...$keys): array     // Difference
```

---

3️⃣ Zsets- sorted sets
----------------------

[](#3️⃣-zsets--sorted-sets)

```
zadd(string $key, mixed ...$members): int      // Add one or more members
zrem(string $key, mixed ...$members): int      // Remove one or more members
zrange(string $key): array                   // Return all members
zcard(string $key): int                        // Count members
```

4️⃣ Lists — Basic MQ
--------------------

[](#4️⃣-lists--basic-mq)

```
rpush(string $key, mixed ...$values): int      // Producer: push a message
lpop(string $key): mixed                       // Non-blocking consumer
lmpop(string $key): array
llen(string $key): int                         // Queue length
```

### Classic pattern

[](#classic-pattern)

```
Producer  →  LPUSH queue "message"
Consumer  →  BRPOP queue 0       // blocks until a message arrives

```

---

6️⃣ Pub/Sub
-----------

[](#6️⃣-pubsub)

```
publish(string $channel, mixed $message): int          // Publish a message
subscribe(string ...$channels): void                   // Subscribe to channels
unsubscribe(string ...$channels): void                 // Unsubscribe
psubscribe(string ...$patterns): void                  // Pattern matching e.g. "user.*"
```

---

7️⃣ Streams — The Final Boss (proper MQ)
----------------------------------------

[](#7️⃣-streams--the-final-boss-proper-mq)

```
// * = auto-generated id
xadd(string $key, array $message, string $id = '*'): string

// Simple read
xread(array $streams, int $count = null, int $block = null): array

// Read via consumer group
xreadgroup(string $group, string $consumer, array $streams, int $count = null): array

// Acknowledge a processed message
xack(string $key, string $group, string ...$ids): int

// Manage consumer groups
xgroup(string $op, string $key, string $group, string $id = '0'): mixed

// Number of messages in the stream
xlen(string $key): int
```

> **Lists** → simple, no ack, fire &amp; forget
> **Streams** → persistent, ack, consumer groups, replayable ← Kafka-like

---

**@See you space cowboy...** 🚀

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance98

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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

Total

3

Last Release

11d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25434383?v=4)[Laurent Legaz](/maintainers/llegaz)[@llegaz](https://github.com/llegaz)

---

Top Contributors

[![llegaz](https://avatars.githubusercontent.com/u/25434383?v=4)](https://github.com/llegaz "llegaz (29 commits)")

---

Tags

redispredisMQphpredissets

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k318.6M2.7k](/packages/predis-predis)[predis/predis-async

Asynchronous version of Predis

371352.1k](/packages/predis-predis-async)[ukko/phpredis-phpdoc

@phpdoc extension phpredis for IDE autocomplete

215504.2k13](/packages/ukko-phpredis-phpdoc)[cache/redis-adapter

A PSR-6 cache implementation using Redis (PhpRedis). This implementation supports tags

574.0M27](/packages/cache-redis-adapter)[predis/service-provider

Predis service provider for the Silex microframework

70548.0k1](/packages/predis-service-provider)[jamescauwelier/psredis

Sentinel client for the popular php redis client

78397.5k5](/packages/jamescauwelier-psredis)

PHPackages © 2026

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