bpa / notifications
A system to send notifications to different handlers
Installs: 774
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/bpa/notifications
Suggests
- bpa/notifications-slack: Allows you to send notifications to your slack instance
- bpa/notifications-stride: Allows you to send notifications to your stride cloud instance
This package is auto-updated.
Last update: 2025-09-29 02:08:48 UTC
README
Send notifications to different configured handlers at once.
Installation
$ composer require bpa/notifications
Usage
Create a room to which your messages should be sent:
class DeveloperRoom implements RoomInterface { public function getIdentifier() { return 'developer-room'; } public function getName() { return 'Room for developers'; } }
Create a message type:
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.
- Stride: bpa/notifications-stride
- Slack: bpa/notifications-slack