2017 © Pedro Peláez

library queue

The Illuminate Queue package.



The Illuminate Queue package.

  • Thursday, July 26, 2018
  • by taylorotwell
  • Repository
  • 10 Watchers
  • 98 Stars
  • 2,854,159 Installations
  • PHP
  • 326 Dependents
  • 13 Suggesters
  • 25 Forks
  • 0 Open issues
  • 100 Versions
  • 11 % Grown


Illuminate Queue

The Laravel Queue component provides a unified API across a variety of different queue services. Queues allow you to defer the processing of a time consuming task, such as sending an e-mail, until a later time, thus drastically speeding up the web requests to your application., (*1)

Usage Instructions

First, create a new Queue Capsule manager instance. Similar to the "Capsule" provided for the Eloquent ORM, the queue Capsule aims to make configuring the library for usage outside of the Laravel framework as easy as possible., (*2)

use Illuminate\Queue\Capsule\Manager as Queue;

$queue = new Queue;

    'driver' => 'beanstalkd',
    'host' => 'localhost',
    'queue' => 'default',

// Make this Capsule instance available globally via static methods... (optional)

Once the Capsule instance has been registered. You may use it like so:, (*3)

// As an instance...
$queue->push('SendEmail', ['message' => $message]);

// If setAsGlobal has been called...
Queue::push('SendEmail', ['message' => $message]);

For further documentation on using the queue, consult the Laravel framework documentation., (*4)

The Versions