laravelcollective / iron-queue
此包已被废弃,不再维护。未建议替代包。
IronMQ 对 Laravel 队列的支持。
v5.7.1
2018-10-11 19:22 UTC
Requires
- php: >=5.6.4
- illuminate/container: 5.7.*
- illuminate/contracts: 5.7.*
- illuminate/encryption: 5.7.*
- illuminate/http: 5.7.*
- illuminate/queue: 5.7.*
- illuminate/support: 5.7.*
- iron-io/iron_mq: ~4.0
- jeremeamia/superclosure: ~2.0
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.0
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 ],