PHPackages                             takatost/php-pubsub-cmq - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. takatost/php-pubsub-cmq

ActiveLibrary[Queues &amp; Workers](/categories/queues)

takatost/php-pubsub-cmq
=======================

A Tencent CMQ adapter for the php-pubsub package.

1.0.1(9y ago)06161MITPHPPHP &gt;=5.6.0

Since Mar 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/takatost/php-pubsub-cmq)[ Packagist](https://packagist.org/packages/takatost/php-pubsub-cmq)[ RSS](/packages/takatost-php-pubsub-cmq/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (5)Versions (3)Used By (1)

php-pubsub-cmq
==============

[](#php-pubsub-cmq)

A Tencent CMQ adapter for the [php-pubsub](https://github.com/Superbalist/php-pubsub) package.

Installation
------------

[](#installation)

```
composer require takatost/php-pubsub-cmq
```

Usage
-----

[](#usage)

```
$config = [
    'secret_key' => '',
    'secret_id'  => '',
    'queue_end_point'  => 'https://cmq-queue-sh.api.qcloud.com/v2/index.php',
    'topic_end_point'  => 'https://cmq-topic-sh.api.qcloud.com/v2/index.php',
    'options'    => [
        'debug'   => false,
        'timeout' => 10,
    ]
];

$adapter = new \Takatost\PubSub\CMQ\CMQPubSubAdapter($config);

// consume messages
// note: this is a blocking call
$adapter->subscribe('topic_queue_name', function ($message) {
    var_dump($message);
});

// publish messages
$adapter->publish('topic_name', 'HELLO WORLD');
$adapter->publish('topic_name', json_encode(['hello' => 'world']));
$adapter->publish('topic_name', 1);
$adapter->publish('topic_name', false);
```

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3431d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5485478?v=4)[takatost](/maintainers/takatost)[@takatost](https://github.com/takatost)

---

Top Contributors

[![takatost](https://avatars.githubusercontent.com/u/5485478?v=4)](https://github.com/takatost "takatost (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/takatost-php-pubsub-cmq/health.svg)

```
[![Health](https://phpackages.com/badges/takatost-php-pubsub-cmq/health.svg)](https://phpackages.com/packages/takatost-php-pubsub-cmq)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.7M3.4k](/packages/craftcms-cms)[illuminate/http

The Illuminate Http package.

11938.5M8.1k](/packages/illuminate-http)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5226.7k](/packages/simplestats-io-laravel-client)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1239.7k25](/packages/fleetbase-core-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
