swooletw/laravel-swoole
最新稳定版本:v2.13.0
Composer 安装命令:
composer require swooletw/laravel-swoole
包简介
High performance HTTP server based on Swoole. Speed up your Laravel and Lumen applications.
README 文档
README
Warning
This package is no longer maintained, we strongly recommend using Laravel's official laravel/octane as an alternative.
If you need coroutine support, consider trying Hypervel for higher performance (This is a Laravel-style coroutine framework.)
Laravel-Swoole
This package provides a high performance HTTP server to speed up your Laravel/Lumen application based on Swoole.
Version Compatibility
| PHP | Laravel | Lumen | Swoole |
|---|---|---|---|
| >=7.2 | >=5.5 | >=5.5 | >=4.3.1 |
Features
- Run Laravel/Lumen application on top of Swoole.
- Outstanding performance boosting up to 5x faster.
- Sandbox mode to isolate app container.
- Support running websocket server in Laravel.
- Support
Socket.ioprotocol. - Support Swoole table for cross-process data sharing.
Documentation
Please see Wiki
Benchmark
Test with clean Lumen 5.6, using DigitalOcean 3 CPUs / 1 GB Memory / PHP 7.2 / Ubuntu 16.04.4 x64
Benchmarking Tool: wrk
wrk -t4 -c100 http://your.app
Nginx with FPM
wrk -t4 -c10 http://lumen-swoole.local
Running 10s test @ http://lumen-swoole.local
4 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 6.41ms 1.56ms 19.71ms 71.32%
Req/Sec 312.99 28.71 373.00 72.00%
12469 requests in 10.01s, 3.14MB read
Requests/sec: 1245.79
Transfer/sec: 321.12KB
Swoole HTTP Server
wrk -t4 -c10 http://lumen-swoole.local:1215
Running 10s test @ http://lumen-swoole.local:1215
4 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 2.39ms 4.88ms 105.21ms 94.55%
Req/Sec 1.26k 197.13 1.85k 68.75%
50248 requests in 10.02s, 10.88MB read
Requests/sec: 5016.94
Transfer/sec: 1.09MB
Q&A
The common questions are collected in Q&A. You can go check if your question is listed in the document.
Issues and Support
Please read Issues Guideline before you submit an issue, thanks.
Bugs and feature request are tracked on GitHub.
Credits
Alternatives
License
The Laravel-Swoole package is open-sourced software licensed under the MIT license.
Support on Beerpay
Hey dude! Help me out for a couple of ????!
swooletw/laravel-swoole 适用场景与选型建议
swooletw/laravel-swoole 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 790.67k 次下载、GitHub Stars 达 4.05k, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「performance」 「http」 「server」 「laravel」 「swoole」 「lumen」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 swooletw/laravel-swoole 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 swooletw/laravel-swoole 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 swooletw/laravel-swoole 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
g4 application profiler package
repository php library
CSS/Javascript Minificator, Compressor and Concatenator for TYPO3 - highly configurable frontend asset optimization for CSS/JS merging, minification and compression with optional body parsing, async/defer loading, inline output, data-ignore exclusions, SRI integrity validation/calculation, external
WordPress mu-plugin to remove jQuery Migrate from the list of jQuery dependencies and to allow jQuery to enqueue before </body> instead of in the <head>.
A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.
Create link to static resources with cache-breaking segment based on md5 of the file
统计信息
- 总下载量: 790.67k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4072
- 点击次数: 22
- 依赖项目数: 10
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04