https://github.com/xutl/laravel-qcloud-cmq-queue
https://github.com/xutl/laravel-qcloud-cmq-queue
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/xutl/laravel-qcloud-cmq-queue
- Owner: xutl
- License: mit
- Created: 2018-07-11T07:48:23.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-14T03:44:40.000Z (over 6 years ago)
- Last Synced: 2025-01-20T12:46:36.260Z (4 months ago)
- Language: PHP
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# laravel-qcloud-cmq-queue
This is a queue adapter for the QCloud CMQ
## Installation
```bash
composer require xutl/laravel-qcloud-cmq-queue
```## for Laravel
This service provider must be registered.
```php
// config/app.php'providers' => [
'...',
XuTL\QCloud\Cmq\Queue\CMQServiceProvider::class,
];
```edit the config file: config/queue.php
add config
```php
'cmq' => [
'driver' => 'cmq',
'secret_Id' => env('CMQ_SECRET_ID', 'your-secret_Id'),
'secret_Key' => env('CMQ_SECRET_KEY', 'your-secret_Key'),
'endpoint' => 'https://cmq-queue-bj.api.qcloud.com',
'queue' => 'default'
],
```change default to cmq
```php
'default' => 'cmq'
```## Use
see [Laravel wiki](https://laravel.com/docs/5.6/queues)