LaravelPackages.net
Acme Inc.
Toggle sidebar
icemanpro/aliyun-mns-laravel

阿里云消息服务在Laravel5中的Queue拓展。

158
0
2.2.2
About icemanpro/aliyun-mns-laravel

icemanpro/aliyun-mns-laravel is a Laravel package for 阿里云消息服务在laravel5中的queue拓展。. It currently has 0 GitHub stars and 158 downloads on Packagist (latest version 2.2.2). Install it with composer require icemanpro/aliyun-mns-laravel. Discover more Laravel packages by icemanpro or browse all Laravel packages to compare alternatives.

Last updated

AliyunMns

Latest Stable VersionLicense

使用阿里云消息服务(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'
        ],
	],

SDK 版本号

已含aliyunMNS SDK 1.3.1

Comments