Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jesusslim/sroute

simple route
https://github.com/jesusslim/sroute

Last synced: about 1 month ago
JSON representation

simple route

Awesome Lists containing this project

README

        

# sroute
simple route

## usage

$routes = new \sroute\src\Routes();
$routes->post('/test',[YourController::class,'action']);
$routes->get('/closure',function(){ echo "sroute";});
$route = $routes->match('GET','/closure');
$handler = $routes->handler('GET','/closure');