2017 © Pedro Peláez
 

fuel-package fuel-queue

Fuel wrapper around Indigo Queue package

image

indigophp/fuel-queue

Fuel wrapper around Indigo Queue package

  • Sunday, September 21, 2014
  • by mark.sagikazar
  • Repository
  • 0 Watchers
  • 0 Stars
  • 17 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Fuel Queue

This package is a wrapper around indigophp/queue package., (*1)

Install

Via Composer, (*2)

``` json { "require": { "indigophp/fuel-queue": "dev-master" } }, (*3)


## Usage 1.Update your `config/queue.php` ``` php /** * Predefined queue instances */ 'queue' => array( 'email' => null, 'process' => 'beanstalk' ), /** * Default connector */ 'default' => 'beanstalk', /** * Connector instances */ 'connector' => array( 'beanstalk' => function () { $pheanstalk = new Pheanstalk_Pheanstalk('localhost', 11300); return new Indigo\Queue\Connector\BeanstalkdConnector($pheanstalk); } ), /** * Logger instance for worker (can be a Closure) * Must evaluate to Psr\Log\LoggerInterface */ 'logger' => \Log::instance(),

2.Create queue instance, (*4)

``` php // Simple way \Queue::forge('process');, (*5)

// Predefined connector \Queue::forge('process', 'beanstalk');, (*6)

// Connector injected $pheanstalk = new Pheanstalk_Pheanstalk('localhost', 11300); $connector = Indigo\Queue\Connector\BeanstalkdConnector($pheanstalk); \Queue::forge('process', $connector);, (*7)

// New queue \Queue::forge('new_queue', 'beanstalk');, (*8)


3.Run your worker ``` bash oil r worker process

bash oil r worker *queue* [connector] [--quiet], (*9)

Credits

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

23/07 2014

v1.0.0

1.0.0.0 https://indigophp.com

Fuel wrapper around Indigo Queue package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Márk Sági-Kazár

queue job worker fuel

27/01 2014

dev-master

9999999-dev https://indigophp.com

Fuel wrapper around Indigo Queue package

  Sources   Download

MIT

The Requires

 

by Márk Sági-Kazár

queue job worker fuel