Download the PHP package petitpress/gps-messenger-bundle without Composer
On this page you can find all versions of the php package petitpress/gps-messenger-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download petitpress/gps-messenger-bundle
More information about petitpress/gps-messenger-bundle
Files in petitpress/gps-messenger-bundle
Package gps-messenger-bundle
Short Description Google Pub/Sub transport for Symfony Messenger
License MIT
Homepage https://www.petitpress.sk
Informations about the package gps-messenger-bundle
Google Pub/Sub 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,
it doesn't require Enqueue
and some bridge.
Features
- **Compatible with the latest
google/cloud-pubsub
2.***. - Zero extra dependencies beyond core Symfony (e.g.
Symfony Messenger
) and Pub/Sub libraries. - Flexible and extensive configuration, available via options or DSN (Data Source Name), including
deadLetterPolicy
,enableMessageOrdering
,ackDeadlineSeconds
). - Automatic Pub/Sub Topic and Subscription creation, with the ability to disable it if needed.
- Message ordering support using the
OrderingKeyStamp
. - Keep-alive support for long-running Messenger workers.
Support
Version | Status | Symfony Versions |
---|---|---|
3.x | Actively Supported | >= 5.4 |
4.x | In development | >= 7.2 |
Installation
Step 1: Install the Bundle
From within container execute the following command to download the latest version of the bundle:
Step 2: Configure environment variables
Official Google Cloud PubSub SDK 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
:
List of Google Pub/Sub configurable variables :
or if you have credentials in a base64 encoded env variable:
Step 3: Configure Symfony Messenger
or:
to use emulator in local:
Step 4: Configure PetitPressGpsMessengerBundle (optional)
Configure the cache service where authentication tokens are stored. The default is cache.app
.
Step 5: Use available stamps if needed
-
OrderingKeyStamp
: use for keeping messages of the same context in order. For more information, read an official documentation. AttributesStamp
: use to add contextual metadata to serialized messages. For more information, read an official documentation. Can be very useful when used together with subscription filters.
Step 6: Create topics from config
License
This bundle is released under the MIT License.
All versions of gps-messenger-bundle with dependencies
ext-json Version *
psr/cache Version ^1.0|^2.0|^3.0
symfony/config Version ^5.4|^6.0|^7.0
symfony/dependency-injection Version ^5.4|^6.0|^7.0
symfony/http-kernel Version ^5.4|^6.0|^7.0
symfony/messenger Version ^5.4|^6.0|^7.0
symfony/options-resolver Version ^5.4|^6.0|^7.0
google/cloud-pubsub Version ^2.0