2017 © Pedro Peláez
 

library laravel-async-queue

Async Queue Driver for Laravel/Oracle (Push to background)

image

studentjason/laravel-async-queue

Async Queue Driver for Laravel/Oracle (Push to background)

  • Friday, January 30, 2015
  • by studentjason
  • Repository
  • 1 Watchers
  • 0 Stars
  • 145 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 50 Forks
  • 0 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

Laravel 4/5 Async Queue Driver

Push a function/closure to the background.

Just like the 'sync' driver, this is not a real queue driver. It is always fired immediatly. The only difference is that the closure is sent to the background without waiting for the response. This package is more usable as an alternative for running incidental tasks in the background, without setting up a 'real' queue driver., (*1)

Note: If you are coming from 0.1.0 (or dev-master), you will need to run the migrations, since the new versions uses a database to store the queue., (*2)

Install

Require the latest version of this package with Composer, (*3)

composer require studentjason/laravel-async-queue

Add the Service Provider to the providers array in config/app.php, (*4)

'Barryvdh\Queue\AsyncServiceProvider',

You need to run the migrations for this package, (*5)

$ php artisan migrate --package="barryvdh/laravel-async-queue"

Or publish them, so they are copied to your regular migrations, (*6)

$ php artisan migrate:publish barryvdh/laravel-async-queue

You should now be able to use the async driver in config/queue.php, (*7)

'default' => 'async',

'connections' => array(
    ...
    'async' => array(
        'driver' => 'async',
    ),
    ...
}

By default, php is used as the binary path to PHP. You can change this by adding the binary option to the queue config. You can also add extra arguments (for HHVM for example), (*8)

'connections' => array(
    ...
    'async' => array(
        'driver' => 'async',
        'binary' => 'php',
        'binary_args' => '',
    ),
    ...
}

It should work the same as the sync driver, so no need to run a queue listener. Downside is that you cannot actually queue or plan things. Queue::later() is also fired directly, but just runs sleep($delay) in background.. For more info see http://laravel.com/docs/queues, (*9)

The Versions

30/01 2015

dev-master

9999999-dev

Async Queue Driver for Laravel/Oracle (Push to background)

  Sources   Download

MIT

The Requires

 

laravel queue async background

26/11 2014

v0.3.0

0.3.0.0

Async Queue Driver for Laravel (Push to background)

  Sources   Download

MIT

The Requires

 

laravel queue async background

29/04 2014

v0.1.0

0.1.0.0

  Sources   Download

The Requires