2017 © Pedro Peláez
 

library message-bus-werkspot-message-queue-adapter

The adapter that allows for werkspot/message-queue to be used with werkspot/message-bus.

image

werkspot/message-bus-werkspot-message-queue-adapter

The adapter that allows for werkspot/message-queue to be used with werkspot/message-bus.

  • Monday, October 9, 2017
  • by werkspot
  • Repository
  • 33 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Werkspot \ MessageBus \ MessageQueue \ WerkspotMessageQueue

Author Software License Latest Version Total Downloads, (*1)

Build Status Coverage Status Quality Score, (*2)

This is an adapter around Werkspot\MessageQueue, so Werkspot\MessageBus can use it and still be decoupled., (*3)

Usage

The MessageDispatcher is the entry point to the message bus. There are already a few middlewares provided with this library, which you can find in src/Bus/DeliveryChain., (*4)

    use Werkspot\MessageBus\MessageQueue\WerkspotMessageQueue\MessageQueueService;
    use Werkspot\MessageQueue\MessageQueueService as WerkspotMessageQueueService;

    $message = new AsynchronousMessage('payload', 'destination', ['metadata']);

    $messageQueueService = new MessageQueueService(new WerkspotMessageQueueService(/* ... */));

    $messageQueueService->enqueueMessage($message);

Installation

To install the library, run the command below and you will get the latest version:, (*5)

composer require werkspot/message-bus-werkspot-message-queue-adapter

Tests

To execute the tests run:, (*6)

make test

Coverage

To generate the test coverage run:, (*7)

make test_with_coverage

Code standards

To fix the code standards run:, (*8)

make cs-fix

The Versions

09/10 2017

dev-master

9999999-dev

The adapter that allows for werkspot/message-queue to be used with werkspot/message-bus.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Werkspot Team

bus queue message commandbus message-bus eventbus message-queue