illuminate/queue
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
illuminate/console | v6.20.44 | - | MIT | prod | |
illuminate/container | v6.20.44 | - | MIT | prod | |
illuminate/contracts | v6.20.44 | - | MIT | prod | |
illuminate/database | v6.20.44 | - | MIT | prod | |
illuminate/filesystem | v6.20.44 | - | MIT | prod | |
illuminate/pipeline | v6.20.44 | - | MIT | prod | 1 |
illuminate/support | v6.20.44 | - | MIT | prod | |
opis/closure | 3.6.3 | 20.43 kB | MIT | prod | |
symfony/debug | v4.4.44 | 39.55 kB | MIT | prod | 1 |
symfony/process | v4.4.44 | - | MIT | prod dev |
Illuminate/Queue is a component of Laravel that provides a unified API for different queue services. It allows you to defer time-consuming tasks, such as sending emails, to a later time. This can significantly speed up web requests to your application, since these tasks will be handled in the background and won't block the immediate processing of your application.
To use the Illuminate/Queue package, you must first create a new Queue Capsule manager instance. This configuration is intended to make the library usage outside of Laravel as simple as possible. Below is a simple usage example in PHP:
use Illuminate\Queue\Capsule\Manager as Queue;
$queue = new Queue;
$queue->addConnection([
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
]);
$queue->setAsGlobal(); // This makes the Capsule instance available globally via static methods. This is optional.
Once the Capsule instance has been registered, you can use it like this:
$queue->push('SendEmail', ['message' => $message]); // instance usage
Queue::push('SendEmail', ['message' => $message]); // global static method usage
The Illuminate/Queue documentation can be found within the Laravel framework documentation. For comprehensive details about Illuminate/Queue and how to use it, refer to Laravel's official documentation, which is available at https://laravel.com/docs.