huangdijia / laravel-gateway-worker
gateway-worker for laravel
v2.1.1
2023-03-24 08:21 UTC
Requires
- php: >=8.0
- illuminate/console: ^9.0|^10.0
- illuminate/support: ^9.0|^10.0
- workerman/gateway-worker: ^3.0.28
- workerman/gatewayclient: ^3.0.13
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- orchestra/testbench: ^7.0|^8.0
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^9.5|^10.0
README
Installation
Laravel
composer require huangdijia/laravel-gateway-worker
publish
php artisan vendor:publish --provider="Huangdijia\GatewayWorker\GatewayWorkerServiceProvider"
Lumen
copy config
cp vendor/huangdijia/laravel-gateway-worker/config/gatewayworker.php config
edit bootstrap/app.php
, add
$app->register(Huangdijia\GatewayWorker\GatewayWorkerServiceProvider::class); // ... $app->configure('gatewayworker');
Usage
php artisan gateway-worker:serve [start|stop|restart|status|connections|help]
for help
php artisan gateway-worker:serve --help
Cluster
Cluster
In One
php artisan --register --gateway --businessworker