PHP code example of rumd3x / notifier-interface
1. Go to this page and download the library: Download rumd3x/notifier-interface library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rumd3x / notifier-interface example snippets
class MyNotification implements Rumd3x\Standards\NotificationInterface
{
// Implementation
}
class MyNotifier implements Rumd3x\Standards\NotifierInterface
{
public function notify(Rumd3x\Standards\NotificationInterface $notification)
{
// Implementation
}
}
$notification = new MyNotification();
$notifier = new MyNotifier();
$notifier->notify($notification);