2017 © Pedro Peláez
 

library laravel-resque-ex

Laravel Resque connector for Queue.

image

whatknight/laravel-resque-ex

Laravel Resque connector for Queue.

  • Tuesday, September 16, 2014
  • by whatknight
  • Repository
  • 1 Watchers
  • 1 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel Resque

This package allows you to connect to Resque when using Queue., (*1)

This is a fork of awillis13's laravel-resque using kamisama's fork of chrisboulton's php-resque., (*2)

Requirements

  • PHP 5.4+

Installation

Add the following to your project's composer.json:, (*3)

"require": {
    "whatknight/laravel-resque": "1.0.0"
}

Now you need to run the following to install the package:, (*4)

composer update

Next you need to add the following service provider to your app/config/app.php:, (*5)

'Resque\ServiceProviders\ResqueServiceProvider'

Now you need to add the following to your /app/config/queue.php "connections" section:, (*6)

"resque" => [
    "driver" => "resque"
]

If you wish to use this driver as your default Queue driver you will need to set the following as your "default" drive in app/config/queue.php:, (*7)

"default" => "resque",

Usage

If you choose to not use this driver as your default Queue driver you can call a Queue method on demand by doing:, (*8)

Queue::connection('resque')->push('JobName', ['name' => 'Andrew']);

Enqueing a Job

Queue::push('JobName', ['name' => 'Andrew']);

Tracking a Job

$token = Queue::push('JobName', ['name' => 'Andrew'], true);
$status = Queue::getStatus($token);

Enqueing a Future Job

$when = time() + 3600; // 1 hour from now
Queue::later($when, 'JobName', ['name' => 'Andrew']);

Further Documentation

License

Laravel Resque is open-sourced software licensed under the MIT license., (*9)

The Versions

16/09 2014

dev-master

9999999-dev

Laravel Resque connector for Queue.

  Sources   Download

MIT

The Requires

 

by Matt Thompson

laravel queue resque

16/09 2014

1.0.0

1.0.0.0

Laravel Resque connector for Queue.

  Sources   Download

MIT

The Requires

 

by Matt Thompson

laravel queue resque

16/09 2014

dev-develop

dev-develop

Laravel Resque connector for Queue.

  Sources   Download

MIT

The Requires

 

by Matt Thompson

laravel queue resque