PHP Classes

PHP Route Controller: Register routes and dispatch controller requests

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 54%Total: 393 All time: 6,611 This week: 200Up
Version License PHP version Categories
route-controller 1.0.0GNU General Publi...5.4HTTP, PHP 5, Design Patterns


This class can register routes and dispatch controller requests.

It can register one or more request URL route patterns and assign closure functions to dispatch requests to those URLs.

It can also take an optional closure function to handle errors that happened during the dispatching of a request of a registered route.

The class can process the incoming HTTP request and check if it matches any of the registered routes, so it can dispatch the request to the respective closure function.

Picture of Aleksandar Zivanovic
  Performance   Level  
Name: Aleksandar Zivanovic <contact>
Classes: 16 packages by
Country: Serbia Serbia
Age: 29
All time rank: 16277 in Serbia Serbia
Week rank: 373 Up5 in Serbia Serbia Up
Innovation award
Innovation award
Nominee: 4x

  Files folder image Files  
File Role Description
Plain text file RouteController.php Class Class itself
Accessible without login Plain text file example.php Example How to use RouteController

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:6,611
This week:200Up
 User Ratings  
 All time