PHP Classes

Router: Route request to controller based on the URL

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 44%Total: 986 All time: 3,687 This week: 673Up
Version License PHP version Categories
routing-class 0.1.2Free for non-comm...5.3HTTP, PHP 5, Design Patterns
Description 

Author

This class can route the current request to controller based on the request URL.

It takes a list of supported routes and tries to match the current request with one of the routes to instantiate the associated controller class and call a given controller function.

The router class may fallback to an error controller if none of the configured routes matches the current request URI.

Picture of Rocklviv
  Performance   Level  
Name: Rocklviv <contact>
Classes: 1 package by
Country: Ukraine Ukraine
Age: 39
All time rank: 238936 in Ukraine Ukraine
Week rank: 136 Up6 in Ukraine Ukraine Up

  Files folder image Files (2)  
File Role Description
Plain text file Router.php Class Main router class
Accessible without login Plain text file routes.php Conf. Routes list

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:986
This week:0
All time:3,687
This week:673Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:68%StarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:44%StarStarStar
Rank:3495