https://github.com/xutl/qcloud-cmq
腾讯云的 CMQ PHP SDK,全功能
https://github.com/xutl/qcloud-cmq
qcloud qcloud-cmq tencent tencent-cloud
Last synced: 8 days ago
JSON representation
腾讯云的 CMQ PHP SDK,全功能
- Host: GitHub
- URL: https://github.com/xutl/qcloud-cmq
- Owner: xutl
- License: mit
- Created: 2018-07-10T03:15:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-08T08:37:44.000Z (about 3 years ago)
- Last Synced: 2025-04-18T18:08:59.398Z (about 1 month ago)
- Topics: qcloud, qcloud-cmq, tencent, tencent-cloud
- Language: PHP
- Homepage:
- Size: 105 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# qcloud-cmq
这个SDK和阿里云的MNS通用,直接可切换,
支持 同步 异步模式。[](https://travis-ci.org/xutl/qcloud-cmq)
[](https://packagist.org/packages/xutl/qcloud-cmq)
[](https://packagist.org/packages/xutl/qcloud-cmq)
[](https://packagist.org/packages/xutl/qcloud-cmq)
## InstallationThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist xutl/qcloud-cmq
```or add
```
"xutl/qcloud-cmq": "~1.0"
```to the require section of your `composer.json` file.
## Use
```php
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());
}```
## For Laravel
[xutl/laravel-qcloud-cmq-queue](https://github.com/xutl/laravel-qcloud-cmq-queue)