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 today

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 52% 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

3386d 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.6M2.9k](/packages/craftcms-cms)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M154](/packages/spatie-laravel-health)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[venturedrake/laravel-crm

A free open source CRM built as a package for laravel projects

42010.0k](/packages/venturedrake-laravel-crm)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.1k1](/packages/jasara-php-amzn-selling-partner-api)

PHPackages © 2026

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