explore-pu / lumen-swoole
speed up lumen framework by swoole
v1.0.3
2024-07-09 08:40 UTC
Requires
- php: >=8.0
- laravel/lumen-framework: >=10.0
This package is auto-updated.
Last update: 2025-01-16 05:36:57 UTC
README
composer require explore-pu/lumen-swoole
配置
- 在bootstrap/app.php中注册service provider
$app->register(LumenSwoole\SwooleServiceProvider::class);
- 发布配置文件
php artisan swoole:publish
- 同时在bootstrap/app.php加载此文件
$app->configure('swoole');
使用
php artisan swoole:http start|restart|stop|reload|status php artisan swoole:websocket start|restart|stop|reload|status