addcnos / laravel-gateway-worker
Gateway-worker for Laravel
1.0.0
2021-07-01 05:20 UTC
Requires
- php: >=7.1.0
- illuminate/console: ^5.7|^6.0|^7.0|^8.0
- illuminate/support: ^5.7|^6.0|^7.0|^8.0
- workerman/gateway-worker: ^3.0
- workerman/gatewayclient: ^3.0
- workerman/workerman: ^3.5
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- orchestra/testbench: ^4.0
- phpstan/phpstan: ^0.12
README
Installation
Laravel
composer require addcnos/laravel-gateway-worker
publish
php artisan vendor:publish --provider="Addcnos\GatewayWorker\GatewayWorkerServiceProvider"
Lumen
copy config
cp vendor/addcnos/laravel-gateway-worker/config/gatewayworker.php config
edit bootstrap/app.php
, add
$app->register(Addcnos\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