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

v0.5.0 2019-12-05 10:03 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 to 5672

  • 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 '/'