1. Go to this page and download the library: Download iry/php-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/ */
namespace \MyNamespace\event;
class Setting implements \iry\e\interfaces\Setting {
public function name(){return 'my_name'}
public function getPoolDriver(){}
public function getSubscribers(){} //return array [class1,class2,....]
public function getEventRules(){return 'className';}
public function getTempPath(){return sys_get_temp_dir();}
}