Zurück zum Ranking

swooletw/laravel-swoole

PHP

High performance HTTP server based on Swoole. Speed up your Laravel or Lumen applications.

swooleswoole-serverswoole-httplaravel-swoolelumenwebsocketsocket-iolaravelphp
Sterne-Wachstum
Sterne
4k
Forks
383
Wochenwachstum
Issues
37
1k2k3k4k
Jan. 2023März 2024Mai 2025Juli 2026
ArtefaktePackagistcomposer require swooletw/laravel-swoole
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

php-badge packagist-badge Total Downloads Scrutinizer Code Quality travis-badge

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.io protocol.
  • 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

Huang-Yi,

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 :beers:!

Beerpay Beerpay

Ähnliche Repositories
swoole/swoole-src

🚀 Coroutine-based concurrency library for PHP

C++Apache License 2.0swoolecoroutines
swoole.com
18.9k3.1k
hyperf/hyperf

🚀 A coroutine framework that focuses on hyperspeed and flexibility. Building microservice or middleware with ease.

PHPPackagistMIT Licenseswoolecoroutine
hyperf.io
6.9k1.3k
swoft-cloud/swoft

🚀 PHP Microservice Full Coroutine Framework

PHPPackagistApache License 2.0swoolecoroutine
swoft.org
5.5k765
easy-swoole/easyswoole

swoole,easyswoole,swoole framework

PHPPackagistApache License 2.0swooleeasyswoole
easyswoole.com
4.8k503
laravel/octane

Supercharge your Laravel application's performance.

PHPPackagistMIT Licenselaraveloctane
laravel.com/docs/octane
4k343
hhxsv5/laravel-s

LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.

PHPPackagistMIT Licenseswoolelaravel
3.9k465
colinlet/PHP-Interview-QA

系统性的 PHP 技术面试问答大全(面经)。涵盖 PHP8、MySQL、Redis、Nginx、系统设计、算法、Laravel 源码及高并发架构原理,助你斩获后端研发 Offer。PHP Interview Questions & Answers.

TypeScriptnpmApache License 2.0algorithmarchitecture
colinlet.github.io/PHP-Interview-QA/
3k564
viest/php-ext-xlswriter

🚀 PHP Extension for creating and reader XLSX files.

CBSD 2-Clause "Simplified" Licensephpexcel
xlswriter.viest.me
2.4k236
viest/php-ext-xlsxwriter

🚀 PHP Extension for creating and reader XLSX files.

CBSD 2-Clause "Simplified" Licensephpexcel
xlswriter.viest.me
2.3k234
Tencent/tsf

coroutine and Swoole based php server framework in tencent

PHPPackagistOtherphpswoole
2.1k474
mix-php/mix

☄️ PHP CLI mode development framework, supports Swoole, WorkerMan, FPM, CLI-Server / PHP 命令行模式开发框架,支持 Swoole、Swow、WorkerMan、FPM、CLI-Server

PHPPackagistApache License 2.0swoolecoroutine
1.9k213
crazywhalecc/static-php-cli

Build standalone portable PHP binaries on Linux, macOS, Windows, with PHP project together, with popular extensions included.

PHPPackagistMIT Licenseswoolephp
static-php.dev
1.9k395