Skip to content

A Symfony bundle to add Google Cloud Pub/Sub suppport for the Symfony messenger

Notifications You must be signed in to change notification settings

teleboy/symfony-messenger-pubsub-bundle

 
 

Repository files navigation

Google Cloud Pub/Sub bundle

This bundle wires cedricziel/messenger-pubsub in a Symfony application.

It enables working Pub/Sub messages through the CLI and via push to an HTTP endpoint.

Installation

composer require cedricziel/symfony-messenger-pubsub-bundle

Configuration

Configure your Symfony Messenger by supplying a valid DSN using the pubsub scheme.

MESSENGER_TRANSPORT_DSN=pubsub://my-google-cloud-project/my-pubsub-topic?subscription=my-subscription

Receiving messages via push is disabled by default, to activate it, include the needed routes:

_pubsub_push:
  resource: '@GoogleCloudPubSubMessengerBundle/Resources/config/routes.xml'
  prefix: /

License

MIT

About

A Symfony bundle to add Google Cloud Pub/Sub suppport for the Symfony messenger

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%