PHP Classes

Cfw Router: Map URIs to controller routes based on rules

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 660 All time: 4,877 This week: 455Up
Version License PHP version Categories
cfw 1.0.0GNU General Publi...5.1HTTP, PHP 5, Tools, Design Patterns


This package can map URLs to controller routes based on rules.

It allows adding supported routes with their names and the associated definition of MVC modules, controllers and actions.

The class can map and dispatch the current request URI or a given URI to the matching route module, controller and action.

Picture of Craig Smith
  Performance   Level  
Name: Craig Smith <contact>
Classes: 5 packages by
Country: New Zealand New Zealand
Age: 46
All time rank: 3373 in New Zealand New Zealand
Week rank: 85 Up1 in New Zealand New Zealand Up

  Files folder image Files  
File Role Description
Files folder imageCfw (2 files)
Accessible without login Plain text file sample.php Example Sample usage of the Routing Engine

  Files folder image Files  /  Cfw  
File Role Description
  Plain text file Route.php Class Holds individual route definition
  Plain text file Router.php Class Router File holds the routes defined and used to build urls

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,877
This week:455Up