PHP code example of indigophp / supervisor-event
1. Go to this page and download the library: Download indigophp/supervisor-event 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/ */
indigophp / supervisor-event example snippets
php
use Indigo\Supervisor\Event\Listener\Standard;
use Indigo\Supervisor\Event\Handler\Callback;
use Indigo\Supervisor\Event\Notification;
$handler = new Callback(function(Notification $notification) {
echo $notification->getHeader('eventname');
});
$listener = new Standard;
$listener->listen($handler);