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(2mo ago)04↑650%MITPHPPHP ^8.5

Since Apr 6Pushed 2mo 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 2mo 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

40

—

FairBetter than 86% of packages

Maintenance87

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

64d 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

[spiritix/lada-cache

A Redis based, automated and scalable database caching layer for Laravel

592452.8k2](/packages/spiritix-lada-cache)[yangusik/laravel-balanced-queue

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

8512.6k](/packages/yangusik-laravel-balanced-queue)[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

975169.8k2](/packages/awssat-laravel-visits)[namoshek/laravel-redis-sentinel

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

39764.5k](/packages/namoshek-laravel-redis-sentinel)[ginnerpeace/laravel-redis-lock

Simple redis distributed locks for Laravel.

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

PHPackages © 2026

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