webpatser/fledge-fiber
Composer 安装命令:
composer require webpatser/fledge-fiber
包简介
Non-blocking async drivers for the Fledge framework — PHP 8.5 only
README 文档
README
Non-blocking async drivers for the Fledge framework. PHP 8.5 only.
Provides fiber-based database (MySQL, MariaDB, PostgreSQL), Redis, HTTP, WebSocket, filesystem, and parallel processing drivers that integrate seamlessly with Laravel's service container.
Requirements
- PHP 8.5+
- revolt/event-loop ^1.0
Installation
composer require webpatser/fledge-fiber
The FiberServiceProvider is auto-discovered. No manual registration needed.
Configuration
Set drivers in your .env:
DB_CONNECTION=fledge-mysql REDIS_CLIENT=fledge
Available database drivers: fledge-mysql, fledge-mariadb, fledge-pgsql
What's included
| Module | Namespace | Description |
|---|---|---|
| Core | Fledge\Async |
Future, async/await, cancellation, pipelines |
| Stream | Fledge\Async\Stream |
Non-blocking byte streams, sockets, TLS |
| Database | Fledge\Async\Database |
MySQL, MariaDB, PostgreSQL wire protocols |
| Redis | Fledge\Async\Redis |
RESP protocol, pub/sub, TLS |
| HTTP | Fledge\Async\Http |
HTTP/1.1 + HTTP/2 client and server |
| WebSocket | Fledge\Async\WebSocket |
WebSocket client and server |
| File | Fledge\Async\File |
Non-blocking filesystem I/O |
| Parallel | Fledge\Async\Parallel |
Multi-process worker pools |
| DNS | Fledge\Async\Dns |
Async DNS resolution |
| Cache | Fledge\Async\Cache |
Cache interfaces + local implementations |
| Sync | Fledge\Async\Sync |
Mutexes, semaphores, barriers |
| Process | Fledge\Async\Process |
OS process management |
The Laravel integration layer lives under Fledge\Fiber\ and bridges async drivers to Laravel's database, Redis, HTTP, and Livewire systems.
PHP 8.5 Features
This library requires PHP 8.5 and uses:
#[\NoDiscard]on Future-returning methodsclone()with property overrides for immutable configsreadonly classfor value objects (76 classes)- Typed class constants
- First-class callable syntax throughout
Versioning
Follows Fledge versioning: v13.x.y.z where the first three digits match the Laravel version and the fourth is the fledge-fiber patch level.
License
Apache-2.0
webpatser/fledge-fiber 适用场景与选型建议
webpatser/fledge-fiber 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.73k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「redis」 「http」 「websocket」 「mysql」 「postgres」 「async」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 webpatser/fledge-fiber 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 webpatser/fledge-fiber 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 webpatser/fledge-fiber 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
统计信息
- 总下载量: 1.73k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 46
- 依赖项目数: 7
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2026-04-10