PHP code example of fmihel / php-router
1. Go to this page and download the library: Download fmihel/php-router 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/ */
fmihel / php-router example snippets
class Mod1 extends fmihel\router\Route{
public function route_MSG_SEND($from){
error_log(print_r($from,true));
return $this->ok("send Ok on response MSG_SEND");
}
}
\fmihel\router\Router([
'add' =>['mod1.php'],
'suspend' =>false,
]);
composer