PHP code example of naoki-tsuchiya / yii-route-list

1. Go to this page and download the library: Download naoki-tsuchiya/yii-route-list 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/ */

    

naoki-tsuchiya / yii-route-list example snippets




use NaokiTsuchiya\YiiRouteList\YiiRouteList;

define('YII_ENABLE_EXCEPTION_HANDLER', false);
define('YII_ENABLE_ERROR_HANDLER', false);

in.php';

$app = Yii::createWebApplication($config)

$routeList = (new YiiRouteList())($app);

foreach ($routeList as $route) {
    var_dump($route->rule);
    var_dump($route->controller);
    var_dump($route->action);
}