larva/laravel-queue-tencent-cloud-cmq

This is a Laravel queue adapter for the Tencnet Cloud CMQ.

1.0.0 2021-03-06 12:04 UTC

This package is auto-updated.

Last update: 2024-02-06 19:45:35 UTC


README

This is a queue adapter for the QCloud CMQ

Installation

composer require larva/laravel-tencent-cloud-cmq-queue

for Laravel

This service provider must be registered.

// config/app.php

'providers' => [
    '...',
    Larva\Queue\TencentCloudCMQ\CMQServiceProvider::class,
];

edit the config file: config/queue.php

add config

        '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

    'default' => 'cmq'

Use

see Laravel wiki