Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 队列。

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)