2017 © Pedro Peláez
 

library notifications

A system to send notifications to different handlers

image

bpa/notifications

A system to send notifications to different handlers

  • Wednesday, May 2, 2018
  • by BenjaminPaap
  • Repository
  • 2 Watchers
  • 0 Stars
  • 216 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 227 % Grown

The README.md

Send notifications to different configured handlers at once., (*1)

Installation

$ composer require bpa/notifications

Usage

Create a room to which your messages should be sent:, (*2)

class DeveloperRoom implements RoomInterface
{
    public function getIdentifier()
    {
        return 'developer-room';
    }

    public function getName()
    {
        return 'Room for developers'; 
    }
} 

Create a message type:, (*3)

class UrgentDeveloperMessage implements MessageInterface
{
    public function getTitle() 
    {
        return null;
    }

    public function getMessage()
    {
        return 'There is an urgent task waiting to be done';
    }

    public function getRoom()
    {
        return new DeveloperRoom();
    }
}

Handlers

Currently there is only a single handler. But more are to come. I would love to see some contributions for other chat tools like Slack, Hipchat, IRC or others., (*4)

Contribution

The Versions

02/05 2018

dev-master

9999999-dev

A system to send notifications to different handlers

  Sources   Download

MIT

02/05 2018

v1.0

1.0.0.0

A system to send notifications to different handlers

  Sources   Download

MIT