Skip to content

This is a simple and small php router that can handel the whole url routing for your project.

Notifications You must be signed in to change notification settings

Jakobuz/simplePHPRouter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a simple example that shows a simple PHP routing system. This is not for production use but for people who want to understand how such a system works. Take a look in the index.php file. You can use the Route::add method to add a new route to your project. The first argument takes the URL. You can use Regexp in there to parse variables directly out of the URL und push them to the handler method. The handler is the second argument of the add method. Dont forget to set the basepath in index.php and .htaccess file.

About

This is a simple and small php router that can handel the whole url routing for your project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 83.5%
  • Shell 16.0%
  • Dockerfile 0.5%