Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cedricziel/symfony-messenger-pubsub-bundle
A Symfony bundle to add Google Cloud Pub/Sub suppport for the Symfony messenger
https://github.com/cedricziel/symfony-messenger-pubsub-bundle
Last synced: 11 days ago
JSON representation
A Symfony bundle to add Google Cloud Pub/Sub suppport for the Symfony messenger
- Host: GitHub
- URL: https://github.com/cedricziel/symfony-messenger-pubsub-bundle
- Owner: cedricziel
- Created: 2021-05-19T19:40:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-22T13:19:28.000Z (over 3 years ago)
- Last Synced: 2024-10-11T20:07:47.129Z (25 days ago)
- Language: PHP
- Size: 19.5 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```shell
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
```Activate the push routes:
```yaml
_pubsub_push:
resource: '@GoogleCloudPubSubMessengerBundle/Resources/config/routes.xml'
prefix: /
```## License
MIT