PHPackages                             snortlin/google-pubsub-messenger - 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. [API Development](/categories/api)
4. /
5. snortlin/google-pubsub-messenger

ActiveSymfony-messenger-bridge[API Development](/categories/api)

snortlin/google-pubsub-messenger
================================

Symfony Google Pub/Sub extension Messenger Bridge

1.0.0(3y ago)23.9k↓100%4MITPHPPHP ^8.0

Since Mar 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/snortlin/google-pubsub-messenger)[ Packagist](https://packagist.org/packages/snortlin/google-pubsub-messenger)[ RSS](/packages/snortlin-google-pubsub-messenger/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (2)Used By (0)

Google Pub/Sub Messenger
========================

[](#google-pubsub-messenger)

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

[](#installation)

### Step 1: Install

[](#step-1-install)

The preferred method of installation is via [Composer](https://getcomposer.org/):

```
composer require snortlin/google-pubsub-messenger
```

### Step 2: Register Messenger Transport

[](#step-2-register-messenger-transport)

```
# config/services.yaml
services:
    Snortlin\GooglePubsubMessenger\Transport\GpsTransportFactory:
        tags: [ messenger.transport_factory ]
```

### Step 3: Configure Symfony Messenger

[](#step-3-configure-symfony-messenger)

Create a connection based on the DSN and options:

```
framework:
    messenger:
        transports:
            google-pubsub:
                dsn: 'gps://default?topic=topic_name&subscription=subscription_name&key=base64_key'
```

Usage
-----

[](#usage)

### Configuration options

[](#configuration-options)

- `topic`: Topic name
- `subscription`: Subscription name
- `key`: GPS key JSON format
- `pull_max_messages`: Limit the amount of messages pulled; default=0 (GPC default =&gt; 1000)
- `pull_ack_deadline`: The new ack deadline pulled messages; default=0 (GPC default =&gt; 10)
- `redelivery_ack_deadline`: Default ack deadline on redelivered messages, default=0

### OrderingKeyStamp for ordering messages

[](#orderingkeystamp-for-ordering-messages)

```
use Snortlin\GooglePubsubMessenger\Transport\Stamp\OrderingKeyStamp
use Symfony\Component\Messenger\Envelope;
use Symfony\Component\Messenger\MessageBusInterface;

public function index(MessageBusInterface $bus)
{
    $bus->dispatch(new MyMessage('...'), [
        new OrderingKeyStamp('my_ordering_key'),
    ]);

    // ...
}
```

[Official documentation](https://cloud.google.com/pubsub/docs/ordering)

###  Health Score

29

—

LowBetter than 63% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

1454d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9af5cb9ca24e0eb3598369e199ab5ed10f1053f929da7d868da5f9fcb286d6af?d=identicon)[snortlin](/maintainers/snortlin)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/snortlin-google-pubsub-messenger/health.svg)

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

PHPackages © 2026

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