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: 390 All time: 6,572 This week: 181Up
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: 27
All time rank: 16877 in Serbia Serbia
Week rank: 523 Up2 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,572
This week:181Up
 User Ratings  
 All time
For more information send a message to info at phpclasses dot org.