Package Data | |
---|---|
Maintainer Username: | icemanpro |
Maintainer Contact: | i@latrell.me (Latrell Chan) |
Package Create Date: | 2016-07-20 |
Package Last Update: | 2017-04-24 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-11 15:03:14 |
Package Statistics | |
---|---|
Total Downloads: | 155 |
Monthly Downloads: | 2 |
Daily Downloads: | 1 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 1 |
Total Open Issues: | 0 |
使用阿里云消息服务(MNS )作为Laravel5队列驱动。
添加依赖包。
composer require icemanpro/aliyun-mns-laravel dev-master
找到 config/app.php
配置文件中,key为 providers
的数组,在数组中添加服务提供者。
'providers' => [
// ...
Latrell\AliyunMns\MnsServiceProvider::class,
]
打开队列配置文件 config/queue.php
,修改驱动为 mns
。
服务地地址参考:https://help.aliyun.com/document_detail/mns/api_reference/invoke/request.html?spm=5176.docmns/introduction/concepts.6.150.uNuU4m
'connections' => [
// ...
'mns' => [
'driver' => 'mns',
'access_id' => 'your-access-key-id',
'access_key' => 'your-access-key-secret',
'security_token' => null,
'end_point' => 'http(s)://{AccountId}.mns.cn-hangzhou.aliyuncs.com',
'queue' => 'your-queue-name'
],
],
已含aliyunMNS SDK 1.3.1