Skip to content

ppeco/routepp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RoutePP

composer require ppeco/routepp

Simple library for route pages

Example

use ppeco\router\Router;

Router::route("/", function() {
    return "Hello, world!";
});

Router::route("/user/(\d+)", function(array ...$data) {
    return "User #$data[1]";
});

Router::route("/simple", function() {
    return "This is simple pages";
});

echo "Page not found";