2017 © Pedro Peláez
 

library publisher

Simple implementation of Pub/Sub for Hack

image

hhpack/publisher

Simple implementation of Pub/Sub for Hack

  • Monday, June 25, 2018
  • by holyshared
  • Repository
  • 1 Watchers
  • 1 Stars
  • 412 Installations
  • Hack
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 17 Versions
  • 0 % Grown

The README.md

publisher

Simple implementation of Pub/Sub for Hack., (*1)

Latest Stable Version CircleCI Dependency Status License, (*2)

Basic usage

Usage is very simple, You just implement Message the Subscriber.
The following are register to MessagePublisher and just publish a message., (*3)

namespace domain;

use HHPack\Publisher\Message;
use HHPack\Publisher\Subscribable;
use HHPack\Publisher\MessagePublisher;

final class DomainMessage implements Message
{
}

final class DomainMessageSubscriber implements Subscribable<Message>
{
  public async function onDomainMessage(DomainMessage $message) : Awaitable<void>
  {
    await async_task1();
    await async_task2();
  }
}

$publisher = new MessagePublisher();
$publisher->registerSubscriber(new DomainMessageSubscriber());

await $publisher->publish(new DomainMessage());

Run the test

You can run the test with the following command., (*4)

composer install
composer test

The Versions

25/06 2018

dev-master

9999999-dev

Simple implementation of Pub/Sub for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

subscriber hack hhvm pubsub publisher

25/06 2018

1.1.6

1.1.6.0

Simple implementation of Pub/Sub for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

subscriber hack hhvm pubsub publisher

13/05 2018

1.1.5

1.1.5.0

Simple implementation of Pub/Sub for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

subscriber hack hhvm pubsub publisher

27/03 2018

1.1.4

1.1.4.0

Simple implementation of Pub/Sub for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

subscriber hack hhvm pubsub publisher

25/01 2018

1.1.3

1.1.3.0

Simple implementation of Pub/Sub for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

subscriber hack hhvm pubsub publisher

25/01 2018

dev-feature/hhvm3.24

dev-feature/hhvm3.24

Simple implementation of Pub/Sub for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

subscriber hack hhvm pubsub publisher

03/10 2017

1.1.2

1.1.2.0

Simple implementation of Pub/Sub for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

subscriber hack hhvm pubsub publisher

14/09 2017

1.1.1

1.1.1.0

Simple implementation of Pub/Sub for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

subscriber hack hhvm pubsub publisher

12/08 2017

1.1.0

1.1.0.0

Simple implementation of Pub/Sub for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

subscriber hack hhvm pubsub publisher

26/01 2017

1.0.0

1.0.0.0

Simple implementation of Pub/Sub for Hack

  Sources   Download

MIT

The Requires

  • hhvm >=3.12.0

 

The Development Requires

by Noritaka Horio

subscriber hack hhvm pubsub publisher

05/03 2016

0.4.0

0.4.0.0

Simple implementation of Pub/Sub for Hack

  Sources   Download

MIT

The Requires

  • hhvm >=3.12.0

 

The Development Requires

by Noritaka Horio

subscriber hack hhvm pubsub publisher

21/01 2016

0.3.0

0.3.0.0

Simple implementation of Pub/Sub for Hack

  Sources   Download

MIT

The Requires

  • hhvm >=3.11.0

 

The Development Requires

by Noritaka Horio

subscriber hack hhvm pubsub publisher

20/12 2015

0.2.1

0.2.1.0

Simple implementation of Pub/Sub for Hack

  Sources   Download

MIT

The Requires

  • hhvm >=3.6.0

 

The Development Requires

by Noritaka Horio

subscriber hack hhvm pubsub publisher

19/12 2015

0.2.0

0.2.0.0

Simple implementation of Pub/Sub for Hack

  Sources   Download

MIT

The Requires

  • hhvm >=3.6.0

 

The Development Requires

by Noritaka Horio

subscriber hack hhvm pubsub publisher

16/11 2015

0.1.2

0.1.2.0

Simple implementation of Pub/Sub for Hack

  Sources   Download

MIT

The Requires

  • hhvm >=3.6.0

 

The Development Requires

by Noritaka Horio

subscriber hack hhvm pubsub publisher

25/10 2015

0.1.1

0.1.1.0

Simple implementation of Pub/Sub for Hack

  Sources   Download

MIT

The Requires

  • hhvm >=3.6.0

 

The Development Requires

by Noritaka Horio

subscriber hack hhvm pubsub publisher

18/10 2015

0.1.0

0.1.0.0

Simple implementation of Pub/Sub for Hack

  Sources   Download

MIT

The Requires

  • hhvm >=3.6.0

 

The Development Requires

by Noritaka Horio

subscriber hack hhvm pubsub publisher