PHP Route Controller: Register routes and dispatch controller requests

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

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: 15 packages by
Country: Serbia Serbia
Age: 26
All time rank: 17217 in Serbia Serbia
Week rank: 79 1 in Serbia Serbia
Innovation award
Innovation award
Nominee: 4x

File Role Description
RouteController.php Class Class itself
example.php Example How to use RouteController

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:6,549
This week:238
 User Ratings  
 All time

For more information send a message to info at phpclasses dot org.