illuminate/queue
最新稳定版本:v12.44.0
Composer 安装命令:
composer require illuminate/queue
包简介
The Illuminate Queue package.
README 文档
README
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', ['message' => $message]); // If setAsGlobal has been called... Queue::push('SendEmail', ['message' => $message]);
For further documentation on using the queue, consult the Laravel framework documentation.
统计信息
- 总下载量: 30.25M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 211
- 点击次数: 1
- 依赖项目数: 1160
- 推荐数: 36
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04