An abstraction over RabbitMQ for use in FuelPHP.
$ composer require synergitech/queue
class MyTask
{
public static function sum(...$args)
{
return array_sum($args);
}
}
Queue\Task::enqueue([MyTask::class, 'sum'], [2, 4], 3); # 6-
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'/'