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. takatost/php-pubsub-cmq

ActiveLibrary

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 1mo 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 54% 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

3334d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bbbdaf4d970a76a33bd811da420e5315d6be9a302f5516cb8357b05c7ef2e4de?d=identicon)[takatost](/maintainers/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

[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[spatie/laravel-export

Create a static site bundle from a Laravel app

646127.9k5](/packages/spatie-laravel-export)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)

PHPackages © 2026

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