explore-pu/lumen-swoole
安装
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