2017 © Pedro Peláez
 

library scheduledevent

Scheduled Event library for php

image

ahmetgunes/scheduledevent

Scheduled Event library for php

  • Tuesday, February 13, 2018
  • by ahmetgunes
  • Repository
  • 2 Watchers
  • 6 Stars
  • 10 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

ScheduledEvent

ScheduledEvent uses MQ's for throwing events, you can create a Message and pass it to the Managers. The object of the Manager is to publish the "Event" to the MQ and consume the incoming message and route using a Router., (*1)

How to use

Implement the QueueManagerInterface, it should be constructing the Manager which publishes/consumes events. Different events must have their own classes, so that you can have your own data. Your message classes must implement convert() and deConvert() methods for converting your events to MQ of your choice., (*2)

For example;, (*3)

    class SendSMSMessage extends AbstractMessage
    {
           protected $receiver;

           protected $text;
    }

You should serialize the messages by implementing MessageSerializerInterfece or send an already serialized one to your managers, (*4)

You are on your own while implementing the RouterInterface since you should do what you want with your events. The $type attribute can help you with that, but you can also use different Message classes for different events (Recommended way)., (*5)

You should define your queues as priority queues since we use priority attributes., (*6)

If you pass a Unix timestamp as $designatedDate attribute your message will be requeued until that time comes, (*7)

Incoming

  1. Unit Tests
  2. Apache Kafka Wrapper on a different repo

The Versions

13/02 2018

dev-master

9999999-dev

Scheduled Event library for php

  Sources   Download

Apache-2.0

The Requires

  • php ^7.0

 

by Ahmet Güneş

13/02 2018

v0.2.2

0.2.2.0

Scheduled Event library for php

  Sources   Download

Apache-2.0

The Requires

  • php ^7.0

 

by Ahmet Güneş

13/02 2018

v0.2.1

0.2.1.0

Scheduled Event library for php

  Sources   Download

Apache-2.0

The Requires

  • php ^7.0

 

by Ahmet Güneş

13/02 2018

0.2

0.2.0.0

Scheduled Event library for php

  Sources   Download

Apache-2.0

The Requires

  • php ^7.0

 

by Ahmet Güneş

13/02 2018

v0.1

0.1.0.0

Scheduled Event library for php

  Sources   Download

Apache 2.0

The Requires

 

by Ahmet Güneş