PHP Classes

Wepesi PHP Router Class: Route HTTP requests to callback functions

Recommend this page to a friend!
  Info   View files View files (16)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 36 This week: 1All time: 10,913 This week: 560Up
Version License PHP version Categories
wepesi-router 1.0.0The PHP License5HTTP, PHP 5, Design Patterns
Description 

Author

This package can route HTTP requests to callback functions.

It can register one or more URL patterns, HTTP methods, and callback functions that can generate responses to the requests.

The package can analyze the current HTTP request to check if it matches one of the registered URL patterns and HTTP methods.

The class will call the associated callback function or a handler class to handle the current request if it finds one match.

The URL patterns can define how the class can extract the request parameters from the request URL.

The package also provides means to call middleware callback functions that will handle the processing of request parameters, for instance, validation of acceptable parameter values.

Picture of Boss Ibrahim Mussa
  Performance   Level  
Name: Boss Ibrahim Mussa <contact>
Classes: 13 packages by
Country: Congo Congo
Age: ???
All time rank: 29051 in Congo Congo
Week rank: 106 Up1 in Congo Congo Equal
Innovation award
Innovation award
Nominee: 5x

  Files folder image Files  
File Role Description
Files folder image.github (1 directory)
Files folder image.idea (5 files)
Files folder imagedemo (1 file, 2 directories)
Files folder imagesrc (2 files)
Accessible without login Plain text file .htaccess Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file index.php Aux. Auxiliary script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  .github  
File Role Description
Files folder imageworkflows (1 file)

  Files folder image Files  /  .github  /  workflows  
File Role Description
  Accessible without login Plain text file php.yml Data Auxiliary data

  Files folder image Files  /  .idea  
File Role Description
  Accessible without login Plain text file git_toolbox_prj.xml Data Auxiliary data
  Accessible without login Plain text file modules.xml Data Auxiliary data
  Accessible without login Plain text file php.xml Data Auxiliary data
  Accessible without login Plain text file vcs.xml Data Auxiliary data
  Accessible without login Plain text file wepesi_router.iml Data Auxiliary data

  Files folder image Files  /  demo  
File Role Description
Files folder imagecontroller (1 file)
Files folder imagemiddleware (1 file)
  Plain text file index.php Class Class source

  Files folder image Files  /  demo  /  controller  
File Role Description
  Plain text file UserController.php Class Class source

  Files folder image Files  /  demo  /  middleware  
File Role Description
  Plain text file UserValidation.php Class Class source

  Files folder image Files  /  src  
File Role Description
  Plain text file Route.php Class Class source
  Plain text file Router.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:36
This week:1
All time:10,913
This week:560Up