2017 © Pedro Peláez
 

plugin cradle-queue

AMQ handler for Cradle

image

cblanquera/cradle-queue

AMQ handler for Cradle

  • Monday, March 12, 2018
  • by cblanquera
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4,159 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 3 Versions
  • 14 % Grown

The README.md

Deprecation Notice: This project has been moved to https://github.com/CradlePHP/cradle-queue, (*1)

cradle-queue

RabbitMQ with Fork and Exec workers. Built for the Cradle Framework, (*2)

1. Requirements

You should be using CradlePHP currently at dev-master. See https://cradlephp.github.io/ for more information., (*3)

2. Install

composer require cblanquera/cradle-queue

Then in /bootstrap.php, add, (*4)

->register('cblanquera/cradle-queue')

3. Setup

Open /config/services.php and add, (*5)

'rabbitmq-main' => [
    'host' => '127.0.0.1',
    'port' => 5672,
    'user' => 'guest',
    'pass' => 'guest'
],

4. Methods

cradle('global')->queue(*string $event, array $data);

An easy way to queue., (*6)

cradle('global')
    ->queue()
    ->setData(*array $data)
    ->setDelay(*string $delay)
    ->setPriority(*int $priority)
    ->setQueue(*string $queueName)
    ->setRetry(*int $retry)
    ->send(*string $task, bool $duplicates = true);

Returns the queue class for advance manipulation. If you want to prevent duplicates from entering your queue, set the $duplicates flag to false and turn on Redis (this is the only way I can figure this can happen)., (*7)

The Versions

12/03 2018

dev-master

9999999-dev

AMQ handler for Cradle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christian Blanquera

cradle cradlephp

13/01 2017

1.0.x-dev

1.0.9999999.9999999-dev

AMQ handler for Cradle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christian Blanquera

cradle cradlephp

13/01 2017

1.0.0

1.0.0.0

AMQ handler for Cradle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christian Blanquera

cradle cradlephp