PHP code example of fyre / event
1. Go to this page and download the library: Download fyre/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/ */
fyre / event example snippets
use Fyre\Event\Event;
Event::clear();
$hasEvent = Event::has($name);
$removed = Event::off($name, $callback);
Event::off($name);
Event::on($name, $callback, $priority);
Event::trigger($name, ...$args);