2017 © Pedro Peláez
 

library laravel-internal-queue

Internal Queue Driver for Laravel (Push to background)

image

armxy/laravel-internal-queue

Internal Queue Driver for Laravel (Push to background)

  • Monday, August 17, 2015
  • by Armxy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5,079 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 50 Forks
  • 0 Open issues
  • 9 Versions
  • 7 % Grown

The README.md

Laravel 4/5 Internal Queue Driver

Push a function to the background, run immediately or later.

Fork from: https://github.com/barryvdh/laravel-async-queue, (*1)

This is internal queue which store queue into database. 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., (*2)

Install

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

composer require armxy/laravel-internal-queue

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

'Armxy\Queue\InternalQueueServiceProvider',

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

$ php artisan migrate --package="armxy/laravel-internal-queue"

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

$ php artisan migrate:publish armxy/laravel-internal-queue

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

'default' => 'internal',

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

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(
    ...
    'internal' => array(
        'driver' => 'internal',
        '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

17/08 2015

dev-master

9999999-dev

Internal Queue Driver for Laravel (Push to background)

  Sources   Download

MIT

The Requires

 

by Thanayu Thanakitworawat

laravel queue async background internal

17/08 2015

v0.1.7

0.1.7.0

Internal Queue Driver for Laravel (Push to background)

  Sources   Download

MIT

The Requires

 

by Thanayu Thanakitworawat

laravel queue async background internal

09/01 2015

v0.1.6

0.1.6.0

Internal Queue Driver for Laravel (Push to background)

  Sources   Download

MIT

The Requires

 

by Thanayu Thanakitworawat

laravel queue async background internal

08/01 2015

v0.1.5

0.1.5.0

Internal Queue Driver for Laravel (Push to background)

  Sources   Download

MIT

The Requires

 

by Thanayu Thanakitworawat

laravel queue async background internal

08/01 2015

v0.1.4

0.1.4.0

Internal Queue Driver for Laravel (Push to background)

  Sources   Download

MIT

The Requires

 

by Thanayu Thanakitworawat

laravel queue async background internal

06/01 2015

v0.1.3

0.1.3.0

Internal Queue Driver for Laravel (Push to background)

  Sources   Download

MIT

The Requires

 

by Thanayu Thanakitworawat

laravel queue async background internal

28/11 2014

v0.1.2

0.1.2.0

Internal Queue Driver for Laravel (Push to background)

  Sources   Download

MIT

The Requires

 

by Thanayu Thanakitworawat

laravel queue async background internal

28/11 2014

v0.1.1

0.1.1.0

Internal Queue Driver for Laravel (Push to background)

  Sources   Download

MIT

The Requires

 

by Thanayu Thanakitworawat

laravel queue async background internal

28/11 2014

v0.1

0.1.0.0

Internal Queue Driver for Laravel (Push to background)

  Sources   Download

MIT

The Requires

 

by Thanayu Thanakitworawat

laravel queue async background internal