larva/tencent-cloud-cmq

Tencent cloud CMQ php sdk

1.0.0 2021-03-06 11:50 UTC

This package is auto-updated.

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


README

这个SDK和阿里云的MNS通用,直接可切换, 支持 同步 异步模式。

Build Status License Latest Stable Version Total Downloads

Installation

The preferred way to install this extension is through composer.

Either run

composer require larva/tencent-cloud-cmq -vv

or add

"larva/tencent-cloud-cmq ": "~1.0"

to the require section of your composer.json file.

Use

use TencentCloudCMQ\Client;

$client = new Client('https://cmq-queue-bj.api.qcloud.com','abcdedgasdf','abcdedgasdf');
$request = new \TencentCloudCMQ\Requests\ListTopicRequest();
try {
    $response = $client->listTopic($request);
    print_r($response);
} catch (Exception $e) {
    print_r($e->getMessage());
}

For Laravel

larva/laravel-queue-tencent-cloud-cmq