- 授权协议: MIT
- 开发语言: PHP
- 操作系统: 跨平台
- 软件首页: https://github.com/xutl/qcloud-cmq
- 软件文档: https://github.com/xutl/qcloud-cmq/blob/master/README.md
- 官方下载: https://github.com/xutl/qcloud-cmq
软件介绍
qcloud-cmq
这个 SDK 是用在腾讯云,CMQ 消息服务上的。支持同步、异步模式。
安装
最好通过 composer 进行安装
运行
php composer.phar require --prefer-dist xutl/qcloud-cmq
或添加
"xutl/qcloud-cmq": "~1.0"
到 composer.json 文件的所需部分。
使用
use XuTL\QCloud\Cmq\Client;
$client = new Client('https://cmq-queue-bj.api.qcloud.com','abcdedgasdf','abcdedgasdf');
$request = new \XuTL\QCloud\Cmq\Requests\ListTopicRequest();
try {
$response = $client->listTopic($request);
print_r($response);
} catch (Exception $e) {
print_r($e->getMessage());
}
