PHPackages                             alldigitalrewards/pubsub - 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. alldigitalrewards/pubsub

ActiveLibrary

alldigitalrewards/pubsub
========================

PubSub Message Service

1.1.0(4y ago)015MITPHPPHP ^7.0|^8.0

Since Oct 4Pushed 4y ago3 watchersCompare

[ Source](https://github.com/alldigitalrewards/pubsub)[ Packagist](https://packagist.org/packages/alldigitalrewards/pubsub)[ RSS](/packages/alldigitalrewards-pubsub/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (5)Used By (0)

PubSub Message Publisher/Consumer
=================================

[](#pubsub-message-publisherconsumer)

\##Usage

\##Setup

```
scenario: Bucket Queue (Topic) to publish messages to Consumer(s) (subscriptions)
Publishing to a Report Queue:
Note: unique names for Topics, i.e. _REPORTS, _TRANSACTION_EMAIL etc.
```

```
Create new instance
* If Topic and/or Subscription names dont exist they will be created
* naming convention is up to you.

$projectId = getenv('PROJECT_ID'); //The Google project ID
$keyFile = getenv('PUBSUB_KEYFILE'); //The Google project key

$messageService = new MessagePublisherService(
  $projectId,
  $keyFile
);
```

\##Publish

```
* array of key/value string pairs as many, ex.
* throws PubSubServiceException
$message = new Message(
    'DEV_TESTSERVICE2_TOPIC',
    'DEV_TESTSERVICE2_SUBSCRIPTION',
);
$messageService->publish(
    $message,
    [
        'key1' => $someValue1, //string
        'key2' => $someValue2 //string
    ]
);
```

\##Pull Message

```
* returns array
* throws PubSubServiceException
$messageConfig = new Message(
    'DEV_TESTSERVICE2_TOPIC',
    'DEV_TESTSERVICE2_SUBSCRIPTION',
);
$message = $messageService->pullMessage($messageConfig)
print_r($message['key1']); //$someValue1
print_r($message['key2']); //$someValue2
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

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

1681d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c2b92b5a53a8e8f3b2e4065273a99f31fe19b950eb058cd1bd620cde48399420?d=identicon)[Houghtelin](/maintainers/Houghtelin)

![](https://www.gravatar.com/avatar/824513e4f32e579f28bf655454ad6bf9ccd1e7c3becc5c21420625b0e13a09ee?d=identicon)[zwalden](/maintainers/zwalden)

![](https://www.gravatar.com/avatar/796fe3ffb035a9d0387d5d055edd60464f869961f983b2edbdf3b42a2abd6b9b?d=identicon)[jmuto2](/maintainers/jmuto2)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/alldigitalrewards-pubsub/health.svg)

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

###  Alternatives

[akeneo/pim-community-dev

Akeneo PIM, the future of catalog management is open!

1.0k614.1k81](/packages/akeneo-pim-community-dev)[kainxspirits/laravel-pubsub-queue

Queue driver for Google Cloud Pub/Sub.

48381.1k3](/packages/kainxspirits-laravel-pubsub-queue)[petitpress/gps-messenger-bundle

Google Pub/Sub transport for Symfony Messenger

29491.0k3](/packages/petitpress-gps-messenger-bundle)[gdg-tangier/cloud-pubsub

Google Cloud pub-sub for laravel

5054.9k](/packages/gdg-tangier-cloud-pubsub)

PHPackages © 2026

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