2017 © Pedro Peláez
 

library laravel-localpushqueue

A local push queue driver for Laravel 4.

image

mmanos/laravel-localpushqueue

A local push queue driver for Laravel 4.

  • Tuesday, February 24, 2015
  • by mmanos
  • Repository
  • 1 Watchers
  • 2 Stars
  • 831 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Local push queue driver for Laravel 4

This package provides a local laravel queue driver that will open a non-blocking connection to itself, thus offloading the actuall processing of a job., (*1)

Limitations, (*2)

  • Retying failed attempts does not work
  • Delayed jobs are not delayed and execute immediately

Installation Via Composer

Add this to you composer.json file, in the require object:, (*3)

"mmanos/laravel-localpushqueue": "dev-master"

After that, run composer install to install the package., (*4)

Add the service provider to app/config/app.php, within the providers array., (*5)

'providers' => array(
    // ...
    'Mmanos\LocalPushQueue\LocalPushQueueServiceProvider',
)

Configuration

Update the existing queue.php config file and add a new local array to the existing connections array:, (*6)

'connections' => array(
    //...
    'local' => array(
        'driver' => 'localpush',
        'method' => 'POST',
        'url'    => url('queue/receive'),
    ),
),

Then update the default queue driver to be local., (*7)

Next, ensure you have a route defined to listen for your pushed jobs:, (*8)

Route::post('queue/receive', function() { return Queue::marshal(); });

Finally, since this driver makes a request to the URL used by your application, make sure your server can resolve the hostname defined in the url config value. On a dev server you may need to ensure your local hostname is in your machine's hosts file., (*9)

The Versions

24/02 2015

dev-master

9999999-dev

A local push queue driver for Laravel 4.

  Sources   Download

MIT

The Requires

 

by Mark Manos

laravel queue push local

24/02 2015

v1.0.0

1.0.0.0

A local push queue driver for Laravel 4.

  Sources   Download

MIT

The Requires

 

by Mark Manos

laravel queue push local