2017 © Pedro Peláez
 

library message-bus

image

webit/message-bus

  • Friday, January 5, 2018
  • by dbojdo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 31 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 7 % Grown

The README.md

PHP Message Bus

The library provides an abstraction to publish / consume messages to / from message bus., (*1)

Installation

composer require webit/message-bus ^1.0.0

Concepts introduction

Message

Message is just simple container to be published by Publisher and consumed by Consumer., (*2)

$message = new Message('message-type', json_encode(['some' => 'data to be sent']));

Message type is required to recognise what sort of message is sent and helps to understand how it should be handled. Message content is a message itself. It can be any string (not necessarily json)., (*3)

Publisher and Consumer

Publisher publishes a message (using underlying infrastructure) but Consumer awaiting the Message to process it., (*4)

Infrastructure is to be provided by a separate package. It should provide "webit/message-bus-infrastructure:^1.0.0" Composer Virtual Package., (*5)

Tests

./vendor/bin/phpunit

The Versions

05/01 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

message queue message bus

05/01 2018

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

message queue message bus