larva / laravel-queue-aliyun-mns
This is a Laravel queue adapter for the Aliyun MNS.
1.0.0
2021-03-06 12:15 UTC
Requires
- ext-json: *
- illuminate/queue: ^5.0 || ^6.0 || ^7.0 || ^8.0
- illuminate/support: ^5.0 || ^6.0 || ^7.0 || ^8.0
- larva/aliyun-mns: ^1.0
This package is auto-updated.
Last update: 2024-11-06 21:00:45 UTC
README
This is a queue adapter for the Aliyun MNS
Installation
composer require larva/laravel-queue-aliyun-mns
for Laravel
This service provider must be registered.
// config/app.php 'providers' => [ '...', Larva\Queue\AliyunMNS\AliyunMnsServiceProvider::class, ];
edit the config file: config/queue.php
add config
'mns' => [ 'driver' => 'mns', 'access_id' => env('MNS_ACCESS_ID', 'your-access-key-id'), 'access_key' => env('MNS_ACCESS_KEY', 'your-access-key-secret'), 'security_token' => env('MNS_SECURITY_TOKEN', 'your-security-token'), 'endpoint' => 'http(s)://{AccountId}.mns.cn-hangzhou.aliyuncs.com', 'queue' => 'default' ],
change default to mns
'default' => 'mns'
Use
see Laravel wiki