PHP Classes

Router Class: Extract actions defined by URL patterns

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
StarStar 38%Total: 1,231 All time: 3,107 This week: 673Up
Version License PHP version Categories
router-class 1.0Freeware5.0HTTP, PHP 5
Description 

Author

This class can extract actions defined by URL patterns.

It parses a configuration XML file that defines URL patterns and associated route actions.

The main class compares the current request URI with the configured patterns and returns the matched route action name.

Picture of Orkhan
Name: Orkhan <contact>
Classes: 2 packages by
Country: Azerbaijan Azerbaijan
Age: 33
All time rank: 15313 in Azerbaijan Azerbaijan
Week rank: 192 Up1 in Azerbaijan Azerbaijan Up

  Files folder image Files (5)  
File Role Description
Accessible without login Plain text file .htaccess Conf. htaccess file
Plain text file config.class.php Class Config Class
Accessible without login Plain text file example.php Example Example
Plain text file router.class.php Class Main Class (Router)
Accessible without login Plain text file web.config.xml Data Routes Config File (XML)

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:1,231
This week:0
All time:3,107
This week:673Up
User Ratings User Comments (1)
 All time
Utility:56%StarStarStar
Consistency:50%StarStarStar
Documentation:-
Examples:50%StarStarStar
Tests:-
Videos:-
Overall:38%StarStar
Rank:3985
 
This is useful class.
12 years ago (Zulfugar Ismayilzadeh)
70%StarStarStarStar