https://github.com/larvatecn/tencent-cloud-cmq
Tencent Cloud CMQ queue for PHP.
https://github.com/larvatecn/tencent-cloud-cmq
Last synced: 3 months ago
JSON representation
Tencent Cloud CMQ queue for PHP.
- Host: GitHub
- URL: https://github.com/larvatecn/tencent-cloud-cmq
- Owner: larvatecn
- License: mit
- Created: 2021-03-06T11:40:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-06T11:51:55.000Z (over 4 years ago)
- Last Synced: 2025-03-08T20:44:46.709Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tencent-cloud-cmq
这个SDK和阿里云的MNS通用,直接可切换,
支持 同步 异步模式。[](https://travis-ci.org/larva/tencent-cloud-cmq)
[](https://packagist.org/packages/larva/tencent-cloud-cmq)
[](https://packagist.org/packages/larva/tencent-cloud-cmq)
[](https://packagist.org/packages/larva/tencent-cloud-cmq)## Installation
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
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
```php
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](https://github.com/larvatech/laravel-queue-tencent-cloud-cmq)