dareit / notification-manager
Notification manager
Installs: 103
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 4
pkg:composer/dareit/notification-manager
Requires
- maknz/slack: ^1.7
- monolog/monolog: ^1.23
- swiftmailer/swiftmailer: ^6.0
Requires (Dev)
- phpunit/phpunit: ^6.4
This package is not auto-updated.
Last update: 2025-10-20 16:29:22 UTC
README
Notification manager is a very simple and lightweight library to handle notifications.
Usage
Most Basic use of the lib
 $handler = new FooHandler();
 $notification = new FooNotification();
 
 $map = new InMemoryNotificationHandlerMap();
 $map->mapNotificationToHandler($notification, $handler);
 
 $logger = new Logger();
 
 $manager = new NotificationManager($map, $logger);
 $manager->dispatch($notification);