huangdijia/laravel-gateway-worker

gateway-worker for laravel

v2.1.1 2023-03-24 08:21 UTC

This package is auto-updated.

Last update: 2024-07-17 04:40:08 UTC


README

Latest Test Latest Version on Packagist Total Downloads GitHub license

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