Recommend this page to a friend! |
Download .zip |
Info | Example | View files (12) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2022-10-21 (23 days ago) | 79% | Total: 555 This week: 7 | All time: 5,445 This week: 106 |
Version | License | PHP version | Categories | |||
folderbase-php-route 0.13 | GNU General Publi... | 5 | HTTP, PHP 5, Files and Folders, Desig... |
Description | Author | |
This class can route requests to different scripts based on URLs. Recommendations url rewriting |
[]()
GLOBAL $includePath;
GLOBAL $assetsUrl;
$includePath = '/';
require_once './lib/router.php';
$router = new Router();
return $router->go(array(
'afshin'=>'examples/afshin.php',
'/'=>'examples/afshin.php',
'/sub/:param1/:param2/:param3:/param:4'=>'examples/params.php',
));
'/sub/:param1/:param2/:param3:/param:4'=>'examples/params.php'
get Parameters with Array ($parameters)
Files | / | examples |
File | Role | Description | ||
---|---|---|---|---|
sub (1 file, 1 directory) | ||||
afshin.php | Aux. | Auxiliary script | ||
test.php | Aux. | Auxiliary script |
folderbase-php-route-2022-10-21.zip 17KB | |
folderbase-php-route-2022-10-21.tar.gz 15KB | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.