PHPackages                             genesis-global/gps-messenger-bundle - 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. genesis-global/gps-messenger-bundle

ActiveSymfony-bundle[Queues &amp; Workers](/categories/queues)

genesis-global/gps-messenger-bundle
===================================

Fork of petitpress/gps-messenger-bundle with support for PHP 7.3

1.3(4y ago)01.1kMITPHPPHP &gt;=7.2.0

Since Nov 11Pushed 4y agoCompare

[ Source](https://github.com/genesis-global/gps-messenger-bundle)[ Packagist](https://packagist.org/packages/genesis-global/gps-messenger-bundle)[ RSS](/packages/genesis-global-gps-messenger-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (8)Versions (17)Used By (0)

Google Pub/Sub transport implementation for Symfony Messenger
=============================================================

[](#google-pubsub-transport-implementation-for-symfony-messenger)

This bundle provides a simple implementation of Google Pub/Sub transport for Symfony Messenger.

The bundle requires only `symfony/messenger`, `google/cloud-pubsub` and `symfony/options-resolver` packages. In contrast with [Enqueue GPS transport](https://github.com/php-enqueue/gps), it doesn't require [Enqueue](https://github.com/php-enqueue)and [some bridge](https://github.com/sroze/messenger-enqueue-transport#readme). It supports ordering messages with `OrderingKeyStamp` and it's not outdated.

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

[](#installation)

### Step 1: Install the Bundle

[](#step-1-install-the-bundle)

From within container execute the following command to download the latest version of the bundle:

```
$ composer require petitpress/gps-messenger-bundle --no-scripts
```

### Step 2: Configure environment variables

[](#step-2-configure-environment-variables)

Official [Google Cloud PubSub SDK](https://github.com/googleapis/google-cloud-php-pubsub)requires some globally accessible environment variables.

You might need to change default Symfony DotEnv instance to use `putenv`as Google needs to access some variables through `getenv`. To do so, use putenv method in `config/bootstrap.php`:

```
(new Dotenv())->usePutenv()->...
```

List of Google Pub/Sub configurable variables :

```
# use these for production environemnt:
GOOGLE_APPLICATION_CREDENTIALS='google-pubsub-credentials.json'
GCLOUD_PROJECT='project-id'

# use these for development environemnt (if you have installed Pub/Sub emulator):
PUBSUB_EMULATOR_HOST=http://localhost:8538
```

### Step 3: Configure Symfony Messenger

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

```
# config/packages/messenger.yaml

framework:
    messenger:
        transports:
            gps_transport:
                dsn: 'gps://default'
                options:
                    key_file_path: /path/to/gcp-key.json #optional. Can be used instead of setting environment variables.
                    max_messages_pull: 10 # optional (default: 10)
                    topic: # optional (default name: messages)
                        name: 'messages'
                    queue: # optional (default the same as topic.name)
                        name: 'messages'
                    batch_size: 0 # optional (default: 0) If set above 0 it uses pubsubs batch publisher
```

or:

```
# config/packages/messenger.yaml

framework:
    messenger:
        transports:
            gps_transport:
                dsn: 'gps://default/messages?max_messages_pull=10&key_file_path=/path/to/gcp-key.json'
```

### Step 4: Use available stamps if needed

[](#step-4-use-available-stamps-if-needed)

- `OrderingKeyStamp`: use for keeping messages of the same context in order. For more information, read an [official documentation](https://cloud.google.com/pubsub/docs/publisher#using_ordering_keys).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~31 days

Total

10

Last Release

1724d ago

Major Versions

0.1.2 → 1.0.02021-01-06

PHP version history (3 changes)0.1.0PHP &gt;=7.4.0

1.1PHP &gt;=7.3.0

1.2PHP &gt;=7.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e7b8f8776f7163fa5bac65b69b656f525bdf9037545fe4d779e71c1e599e1db?d=identicon)[SiliconMind](/maintainers/SiliconMind)

---

Top Contributors

[![biforb4](https://avatars.githubusercontent.com/u/12737144?v=4)](https://github.com/biforb4 "biforb4 (8 commits)")[![marforon](https://avatars.githubusercontent.com/u/19769026?v=4)](https://github.com/marforon "marforon (2 commits)")[![mickprev](https://avatars.githubusercontent.com/u/17760158?v=4)](https://github.com/mickprev "mickprev (2 commits)")

---

Tags

symfonygoogleMessengerpubsub

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/genesis-global-gps-messenger-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/genesis-global-gps-messenger-bundle/health.svg)](https://phpackages.com/packages/genesis-global-gps-messenger-bundle)
```

###  Alternatives

[petitpress/gps-messenger-bundle

Google Pub/Sub transport for Symfony Messenger

29491.0k3](/packages/petitpress-gps-messenger-bundle)[jwage/phpamqplib-messenger

Symfony messenger transport for the php-amqplib/php-amqplib library.

84149.7k1](/packages/jwage-phpamqplib-messenger)[bref/symfony-messenger

Symfony Messenger bridge to run with SQS and SNS on AWS Lambda with Bref

721.2M6](/packages/bref-symfony-messenger)[kainxspirits/laravel-pubsub-queue

Queue driver for Google Cloud Pub/Sub.

48381.1k3](/packages/kainxspirits-laravel-pubsub-queue)

PHPackages © 2026

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