jesusslim/sroute

php simple route

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/jesusslim/sroute

1.0 2017-10-27 09:14 UTC

This package is not auto-updated.

Last update: 2025-10-12 10:39:05 UTC


README

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');