[READ ONLY] Subtree split of the Illuminate Queue component (see laravel/framework)
PHP
Latest commit e021616 Feb 22, 2017 @taylorotwell taylorotwell fix conflicts
Permalink
Failed to load latest commit information.
Capsule Avoid call_user_func_array in __call functions (#14791) Aug 12, 2016
Connectors Some basic formatting and cleanup surrounding Beanstalk job and contr… Dec 28, 2016
Console improve wordings Feb 8, 2017
Events Convert looping event into an object. Dec 28, 2016
Failed cleanup throwable handling Jul 23, 2016
Jobs [5.5] Remove usages of the with() helper (#17888) Feb 12, 2017
BeanstalkdQueue.php Refactor how connection names are set so they are always set. Dec 30, 2016
CallQueuedHandler.php Extract method. Dec 30, 2016
DatabaseQueue.php [5.4] Fixed phpdoc block annotations. (#17420) Jan 19, 2017
FailingJob.php add methods for determining if job has failed. Jan 23, 2017
InteractsWithQueue.php Apply fixes from StyleCI (#17033) Dec 28, 2016
InteractsWithTime.php Refactoring queue trait and serializers. Dec 30, 2016
InvalidPayloadException.php Extract some queue logic. Dec 29, 2016
Listener.php add listener optinos Dec 30, 2016
ListenerOptions.php add listener optinos Dec 30, 2016
LuaScripts.php Return migrated jobs for customization. Jan 21, 2017
ManuallyFailedException.php Some basic formatting and cleanup surrounding Beanstalk job and contr… Dec 28, 2016
MaxAttemptsExceededException.php add files Sep 7, 2016
NullQueue.php formatting Aug 7, 2016
Queue.php remove redundant argument queue from createPayload (#17948) Feb 16, 2017
QueueManager.php Refactor how connection names are set so they are always set. Dec 30, 2016
QueueServiceProvider.php Beginning cleaning queue component. Dec 28, 2016
README.md Update laravel urls with https (#14629) Aug 5, 2016
RedisQueue.php remove redundant argument queue from createPayload (#17948) Feb 16, 2017
SerializesAndRestoresModelIdentifiers.php Refactoring queue trait and serializers. Dec 30, 2016
SerializesModels.php Applied fixes from StyleCI (#14770) Aug 11, 2016
SqsQueue.php [5.4] Correct implementation of SqsQueue::size (#18037) Feb 21, 2017
SyncQueue.php remove redundant argument queue from createPayload (#17948) Feb 16, 2017
Worker.php improve the expression (#18017) Feb 20, 2017
WorkerOptions.php formatting Nov 18, 2016
composer.json fix conflicts Feb 8, 2017

README.md

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.

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.

use Illuminate\Queue\Capsule\Manager as Queue;

$queue = new Queue;

$queue->addConnection([
    'driver' => 'beanstalkd',
    'host' => 'localhost',
    'queue' => 'default',
]);

// Make this Capsule instance available globally via static methods... (optional)
$queue->setAsGlobal();

Once the Capsule instance has been registered. You may use it like so:

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

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

For further documentation on using the queue, consult the Laravel framework documentation.