Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 671 Bytes

File metadata and controls

25 lines (16 loc) · 671 Bytes

marko/notification

Notification system contracts and channels--send notifications to users via mail, database, or custom channels from a single API.

Installation

composer require marko/notification

Quick Example

use Marko\Notification\NotificationSender;

// Inject the sender and dispatch a notification
$notificationSender->send($user, new OrderShippedNotification($trackingNumber));

// Or queue for background delivery
$notificationSender->queue($user, new OrderShippedNotification($trackingNumber));

Documentation

Full usage, API reference, and examples: marko/notification