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: 387 All time: 6,553 This week: 385Up
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.

  Performance   Level  
Name: Aleksandar Zivanovic <contact>
Classes: 15 packages by
Country: Serbia Serbia
Age: 26
All time rank: 17257 in Serbia Serbia
Week rank: 137 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  
 0%
Total:387
This week:0
All time:6,553
This week:385Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:54%StarStarStar
Rank:1973
  

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