PHP code example of epii / route

1. Go to this page and download the library: Download epii/route library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

epii / route example snippets



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