Add this to your composer.json
and run composer install
.
"require": {
"collectivism/router" : "dev-master"
}
use \Collectivism\Router;
Route::get('/foo/bar', __DIR__ . '/foo/bar.php');
Route::post('/foo/bar', __DIR__ . '/foo/bar.php');
Route::get('/foo/baz', __DIR__ . '/foo/baz.php');
Router::start();