PHPackages                             webpatser/fledge-fiber-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. webpatser/fledge-fiber-redis

ActiveLibrary[Caching](/categories/caching)

webpatser/fledge-fiber-redis
============================

Non-blocking Fiber-based Redis driver for Fledge/Laravel using amphp

v13.3.0.0(3d ago)04↑650%MITPHPPHP ^8.5

Since Apr 6Pushed 3d agoCompare

[ Source](https://github.com/webpatser/fledge-fiber-redis)[ Packagist](https://packagist.org/packages/webpatser/fledge-fiber-redis)[ RSS](/packages/webpatser-fledge-fiber-redis/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

Fledge Fiber Redis
==================

[](#fledge-fiber-redis)

Non-blocking, Fiber-based Redis driver for [Fledge](https://github.com/webpatser/fledge) and Laravel 13 using [amphp/redis](https://github.com/amphp/redis).

Drop-in replacement for the standard phpredis/predis drivers that suspends PHP Fibers during I/O instead of blocking. This means Redis operations (cache, session, queue, locks) can run concurrently with other Fiber-based I/O like database queries and HTTP requests.

Requirements
------------

[](#requirements)

- PHP 8.5+
- Fledge / Laravel 13 (with `getPrefix()` support on Redis connections)
- `amphp/redis` ^2.0 (included)

Installation
------------

[](#installation)

```
composer require webpatser/fledge-fiber-redis
```

The service provider is auto-discovered.

Configuration
-------------

[](#configuration)

Set the Redis client in your `.env`:

```
REDIS_CLIENT=amphp
```

Or in `config/database.php`:

```
'redis' => [
    'client' => env('REDIS_CLIENT', 'amphp'),
    // ... rest stays the same
],
```

All existing Redis config (host, port, password, database, prefix) works unchanged.

How It Works
------------

[](#how-it-works)

The amphp Redis driver uses the [Revolt event loop](https://revolt.run/) for non-blocking socket I/O. When a Redis command is executed:

1. The command is sent over the socket
2. The current Fiber suspends while waiting for the response
3. Other Fibers progress (database queries, HTTP requests, etc.)
4. When the response arrives, the Fiber resumes

All Laravel Redis features work: caching, sessions, queues, locks, pub/sub, pipelines, transactions, Lua scripts.

### Pipelines

[](#pipelines)

The amphp driver automatically batches commands via the event loop. For explicit concurrent execution:

```
$results = Redis::pipeline(function ($pipe) {
    $pipe->set('key1', 'value1');
    $pipe->set('key2', 'value2');
    $pipe->get('key1');
});
```

Limitations
-----------

[](#limitations)

- Redis Cluster is not supported by amphp/redis. Use phpredis or predis for cluster connections.

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

MIT

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance99

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

Total

2

Last Release

3d ago

Major Versions

v0.1.0 → v13.3.0.02026-04-06

### Community

Maintainers

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

---

Top Contributors

[![webpatser](https://avatars.githubusercontent.com/u/25720?v=4)](https://github.com/webpatser "webpatser (2 commits)")

---

Tags

amphpasyncfiberfledgelaravelredisasynclaravelredisamphpfiberfledge

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/webpatser-fledge-fiber-redis/health.svg)

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

###  Alternatives

[namoshek/laravel-redis-sentinel

An extension of Laravels Redis driver which supports connecting to a Redis master through Redis Sentinel.

38679.0k](/packages/namoshek-laravel-redis-sentinel)[amphp/redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

165634.7k44](/packages/amphp-redis)[monospice/laravel-redis-sentinel-drivers

Redis Sentinel integration for Laravel and Lumen.

103830.5k](/packages/monospice-laravel-redis-sentinel-drivers)[yangusik/laravel-balanced-queue

Laravel queue management with load balancing between partitions (user groups)

786.4k](/packages/yangusik-laravel-balanced-queue)[vetruvet/laravel-phpredis

Use phpredis as the redis connection in Laravel

43123.7k](/packages/vetruvet-laravel-phpredis)[ginnerpeace/laravel-redis-lock

Simple redis distributed locks for Laravel.

15114.4k](/packages/ginnerpeace-laravel-redis-lock)

PHPackages © 2026

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