epii/route

一个超级简单的php route。

0.0.3 2020-03-12 06:15 UTC

This package is auto-updated.

Last update: 2025-03-12 17:00:41 UTC


README

install

{
    "require": {
        "epii/route": ">=0.0.1"
    }
}
Route::get("/test", function () {

});

Route::get("/test","class@method");

Route::get("/{id}:(\\d+)", function ($name) {
    var_dump($name);
});

Route::get("/:(.*?\\.html)", function ($m) {
    var_dump($m);
});

Route::delete("/book/{id}:(\\d+)", "class@delete");