lxyempire / nsq
1.0.0
2023-01-13 07:12 UTC
Requires
- php: >=8.0
- illuminate/queue: ^9.0
Suggests
- ext-swoole: Event-driven asynchronous & concurrent & coroutine networking engine with high performance for PHP.
README
NSQ client for laravel
Requirements
Dependency | Requirement |
---|---|
PHP | >= 8.0 |
Swoole | The Newer The Better No longer support PHP5 since 2.0.12 |
Installation
pecl install swoole
composer require lxy/nsq
Usage
Set env
NSQSD_URL=127.0.0.1:4150
NSQLOOKUP_URL=127.0.0.1:4161
# If it is multiple, please separate them with ","
NSQSD_URL=127.0.0.1:4150,127.0.0.1:4151
Create Job
php artisan make:job NsqTestJob