flagstudio/rmq-flag

RabbitMQ Flag message helper

Installs: 824

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/flagstudio/rmq-flag

v0.0.8 2023-01-17 05:24 UTC

This package is not auto-updated.

Last update: 2025-10-07 18:40:39 UTC


README

This package for handling RabbitMQ messages in the Flagstudio Services

  • add environment variables
###RABBITMQ
RABBITMQ_EXCHANGE_NAME=
RABBITMQ_EXCHANGE_TYPE=fanout
RABBITMQ_QUEUE=
RABBITMQ_HOST=
RABBITMQ_PORT=5672
RABBITMQ_USER=
RABBITMQ_PASSWORD=
RABBITMQ_VHOST=/
RABBITMQ_DSN=amqp://
  • export config file
php artisan vendor:publish --provider="Flagstudio\RmqFlag\Providers\RmqFlagServiceProvider" --tag="config"
  • add class which implements RmqMessageHandleExecutable interface for handling message by action value to rmq-flag.ations array
# /config/rmq-flag.php

return [
    #...
    'actions' => [
        # for example
        'update_users' => \App\Actions\Users\FromAuthUpdateUserAction::class,
    ]
    #...
];