laravelcollective/iron-queue

此包已被废弃,不再维护。未建议替代包。

IronMQ 对 Laravel 队列的支持。

v5.7.1 2018-10-11 19:22 UTC

README

此包为 Laravel 队列系统提供 IronMQ (~4.0 SDK) 驱动程序,与 Laravel 5.1 中找到的驱动程序相匹配。

安装

  • composer require laravelcollective/iron-queue
  • Collective\IronQueue\IronQueueServiceProvider::class 添加到您的 app.php 配置文件中。
  • 在您的 config/queue.php 中配置 iron 队列驱动程序,就像在 Laravel 5.1 中配置一样。

示例配置

'iron' => [
    'driver'  => 'iron',
    'host'    => 'mq-aws-us-east-1-1.iron.io',
    'token'   => 'your-token',
    'project' => 'your-project-id',
    'queue'   => 'your-queue-name',
    'encrypt' => true,
    'timeout' => 60
],