chichoyi / laravel-mns
laravel-mns is base aliyun-mns-sdk
2.0
2017-12-08 04:10 UTC
Requires
- php: ~5.6|~7.0
- chichoyi/aliyun-mns-sdk: ^1.3.5
- laravel/framework: ~5.4
This package is auto-updated.
Last update: 2025-03-21 22:14:50 UTC
README
阿里云消息服务(即MNS PHP SDK封装成laravel适配的mns)
install
composer require chichoyi/laravel-mns
config
Add following service providers into your providers array in config/app.php
Chichoyi\LaravelMNS\LaravelMNSServiceProvider::class
Edit your config/queue.php, add mns connection
'mns' => [
'driver' => 'mns',
'key' => env('QUEUE_MNS_ACCESS_KEY'),
'secret' => env('QUEUE_MNS_SECRET_KEY'),
'endpoint' => env('QUEUE_MNS_ENDPOINT'),
'queue' => env('QUEUE_NAME'),
'wait_seconds' => 30,
]
Edit your .env file
QUEUE_DRIVER=mns
QUEUE_NAME=foobar-local
QUEUE_MNS_ACCESS_KEY=your_acccess_key
QUEUE_MNS_SECRET_KEY=your_secret_key
QUEUE_MNS_ENDPOINT=http://12345678910.mns.cn-hangzhou.aliyuncs.com/
Desciption
the aliyun-mns-sdk version is 1.3.5 (latest version)
contact with me
if you have any question, you can send email to me
email:cys843755799@163.com