synergitech / queue
FuelPHP library to integrate easy RabbitMQ publish/consume
Installs: 22 954
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 2
Open Issues: 3
Type:fuel-package
Requires
- composer/installers: ~1.0
- php-amqplib/php-amqplib: ^2.6
- ramsey/uuid: ^3.8
This package is auto-updated.
Last update: 2024-11-29 04:14:36 UTC
README
An abstraction over RabbitMQ for use in FuelPHP.
Installation
$ composer require synergitech/queue
Usage
class MyTask { public static function sum(...$args) { return array_sum($args); } } Queue\Task::enqueue([MyTask::class, 'sum'], [2, 4], 3); # 6
Configuration
-
autorun
(array) a list of environments where the job is executed immediately, rather than enqueuing a job in RabbitMQ. Defaults to['development']
, which means that by default, jobs will immediately execute in development. -
queue.host
(string) the host where your RabbitMQ instance can be found, defaults to'127.0.0.1'
-
queue.port
(int) the port where your RabbitMQ instance can be found, defaults to5672
-
queue.user
(string) the RabbitMQ username, defaults to'guest'
-
queue.password
(string) the RabbitMQ password, defaults to'guest'
-
queue.vhost
(string) the RabbitMQ virtual host, defaults to'/'