Download the PHP package keboola/messenger-bundle without Composer
On this page you can find all versions of the php package keboola/messenger-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package messenger-bundle
Keboola Messenger Bundle
Symfony Messenger bundle preconfigured for Keboola platform.
Installation
Install the package with Composer:
Configuration
Bundle supports following configuration options:
- platform - optional,
aws
,azure
,gcp
ornull
- when not set (or set to
null
) the bundle will not set up any transport
- when not set (or set to
- connection_events_queue_dsn - optional, DSN for connection events queue
- connection_audit_log_queue_dsn - optional, DSN for connection audit log queue
See documentation of each platform driver for details on DSN syntax
- for AWS use the queue URL, ex.
https://sqs.eu-central-1.amazonaws.com/025303414634/queue-name
, see https://symfony.com/doc/current/messenger.html#amazon-sqs for details - for Azure use format
azure://<sas-key-name>:<sas-kev-value>@<servicebus-namespace>?entity_path=<servicebus-queue-name>
, see https://github.com/AymDev/MessengerAzureBundle for details - for GCP use format
gps://default/<topic-name>
, see https://github.com/petitpress/gps-messenger-bundle for details
Reference:
Development
Prerequisites:
aws
CLI with configuredKeboola-Dev-Platform-Services-AWSAdministratorAccess
profileaz
CLI with configured for Keboola DEV Platform Services Team subscription- run
az account set --subscription c5182964-8dca-42c8-a77a-fa2a3c6946ea
- run
- installed
terraform
(https://www.terraform.io) andjq
(https://stedolan.github.io/jq) to setup local env - installed
docker
to run & develop the app
TL;DR:
Reverse-engineering events
If a problem is found in existing serializer or a new serializer needs to be implemented to support new platform, it is possible to connect to a real queue on testing environment to introspect the events structure.
The procedure is slightly different for each platform, but the general idea is the same:
- Open the testing account/project/env in web console (https://portal.azure.com, https://console.cloud.google.com etc.)
- Configure queue for the kind of event you want to debug
- on GCP create a new subscription to existing topic
- in Pub/Sub open topic you want to subscribe to
- in detail, go to Subscriptions tab and click "Create subscription"
- on AWS create a new SQS queue and subscribe it to existing SNS topic
- go to SQS and create a new queue
- go to queues list, select the queue and in "Actions" menu select "Subscribe to SNS topic"
- on Azure create a new Service Bus and subscribe it to existing Event Grid topic
- on GCP create a new subscription to existing topic
- Manually update
.env.local
configuration to connect to the queue- set queue DSN to the queue created in previous step
- on GCP you can use your local application default credentials
- copy contents of
~/.config/gcloud/application_default_credentials.json
to./var/gcp/private-key.json
- set extra ENV
GCLOUD_PROJECT
- copy contents of
- Run
php tests/console messenger:consume <transport_name> -vvv --limit 1
to receive one event from the queue
If the event is successfully consumed, you can see its contents on the output.
When you are done, don't forget to clean up after yourself and delete the queue.
License
MIT licensed, see LICENSE file.
All versions of messenger-bundle with dependencies
ext-pcntl Version *
aymdev/messenger-azure-bundle Version dev-dsnParser
petitpress/gps-messenger-bundle Version ^1.6
symfony/amazon-sqs-messenger Version ^6.3
symfony/dependency-injection Version ^6.0
symfony/messenger Version ^6.0