- Notifications
You must be signed in to change notification settings - Fork0
xutl/qcloud-cmq
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
这个SDK和阿里云的MNS通用,直接可切换,支持 同步 异步模式。
The preferred way to install this extension is throughcomposer.
Either run
php composer.phar require --prefer-dist xutl/qcloud-cmq
or add
"xutl/qcloud-cmq": "~1.0"
to the require section of yourcomposer.json
file.
useXuTL\QCloud\Cmq\Client;$client =newClient('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());}