https://github.com/larvatecn/laravel-queue-aliyun-mns
Alibaba Cloud MNS queue for Laravel. 适用于 Laravel 的阿里云 MNS 队列。
https://github.com/larvatecn/laravel-queue-aliyun-mns
Last synced: 3 months ago
JSON representation
Alibaba Cloud MNS queue for Laravel. 适用于 Laravel 的阿里云 MNS 队列。
- Host: GitHub
- URL: https://github.com/larvatecn/laravel-queue-aliyun-mns
- Owner: larvatecn
- License: mit
- Created: 2021-03-06T11:33:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-06T12:16:17.000Z (over 4 years ago)
- Last Synced: 2025-02-05T06:13:12.413Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# laravel-queue-aliyun-mns
This is a queue adapter for the Aliyun MNS
## Installation
```bash
composer require larva/laravel-queue-aliyun-mns
```## for Laravel
This service provider must be registered.
```php
// config/app.php'providers' => [
'...',
Larva\Queue\AliyunMNS\AliyunMnsServiceProvider::class,
];
```edit the config file: config/queue.php
add config
```php
'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
```php
'default' => 'mns'
```## Use
see [Laravel wiki](https://laravel.com/docs/5.7/queues)