Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/larvatecn/laravel-queue-tencent-cloud-cmq
Tencent Cloud CMQ queue for Laravel. 适用于 Laravel 的腾讯云 CMQ 队列。
https://github.com/larvatecn/laravel-queue-tencent-cloud-cmq
Last synced: 12 days ago
JSON representation
Tencent Cloud CMQ queue for Laravel. 适用于 Laravel 的腾讯云 CMQ 队列。
- Host: GitHub
- URL: https://github.com/larvatecn/laravel-queue-tencent-cloud-cmq
- Owner: larvatecn
- License: mit
- Created: 2021-03-06T12:02:18.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-06T12:09:37.000Z (almost 4 years ago)
- Last Synced: 2024-12-02T06:09:03.235Z (21 days ago)
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# laravel-tencent-cloud-cmq-queue
This is a queue adapter for the QCloud CMQ
## Installation
```bash
composer require larva/laravel-tencent-cloud-cmq-queue
```## for Laravel
This service provider must be registered.
```php
// config/app.php'providers' => [
'...',
Larva\Queue\TencentCloudCMQ\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.7/queues)