PHP code example of rusadrako / router

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

    

rusadrako / router example snippets


	$router = new RD_Router();

	$router->set_root_folder($value);

	$router->set_route($value);

	$router->set_type_rest($value);

	$router->add_router($type, $route_mask, $action);


	$router->add_default($action, $type);


	$router->get_group($num);


	$router->router();

	$router->set_server_setting();

	$this->set_route(...);
	$this->set_root_folder(...);
	$this->set_type_rest(...);
	$this->set_route(...);

	$router->defaul($action);

	$router->defaul($action, $type);

	$router->any($route_mask, $action);

	$router->get($route_mask, $action);

	$router->post($route_mask, $action);