PHP Classes


Recommend this page to a friend!
  Classes of afshin akhgar   Simple PHP Router Library   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Simple PHP Router Library
Route requests to different scripts based on URLs
Author: By
Last change: Update of
Date: 1 year ago
Size: 1,150 bytes


Class file image Download

Folderbase PHP Router!


A lightweight and simple object oriented PHP Router. Built by Afshin Akhgar-


  • Static Route
  • Dynamic Route
  • Parameter Support =>
  • Folder and file and subfolders routing
  • Subrouting
  • Parameter sending over url and query String Support
  • Custom 404 handling
  • Works fine in subfolders > Note: > - This Library is under development

<i class="icon-file"></i> Demo

  • First of all get the lib
  • Include it in your php index file
  • Call The router go Method
GLOBAL $includePath;
GLOBAL $assetsUrl;
$includePath = '/';
require_once './lib/router.php';
$router = new Router();
return $router->go(array(

<i class="icon-file"></i> Parameter


get Parameters with Array ($parameters)