PHP code example of kiryi / routyi

1. Go to this page and download the library: Download kiryi/routyi 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/ */

    

kiryi / routyi example snippets


$routyi = new \Kiryi\Routyi\Router());
$routyi->route();

__construct(?string $namespace = null, ?string $routingTableFilepath = null, ?string $configFilepath = null)

route(): void

(new \Kiryi\Routyi\Router('MyProject\\Controller\\', 'configuration/routes.ini'))->route();
ini
[routyi]
subDir = {YOURSUBDIRECTORY}
ini
/ = HomeController
/about = AboutController