An open API service indexing awesome lists of open source software.

https://github.com/ppeco/routepp

Simple library for route pages
https://github.com/ppeco/routepp

php-router ppeco router

Last synced: 6 months ago
JSON representation

Simple library for route pages

Awesome Lists containing this project

README

          

# RoutePP
```shell
composer require ppeco/routepp
```
Simple library for route pages

## Example
```php
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";
```