Releases: interaapps/deverm-router
Releases · interaapps/deverm-router
5.3.0
5.2.1
Added attributes for the http methods
5.2.0
Added better system of Route Variables
5.1.0
Switched to php8.1 and removed old way of calling functions or methods
5.0.6
Fixed attributes
5.0.5
Added JSONPlus for JSON-Parsing
5.0.4
Fixed methods
5.0.3
PHP 8+ Attribute Support
<?php
// TestController.php
use de\interaapps\ulole\router\attributes\Controller;
use de\interaapps\ulole\router\attributes\Route;
#[Controller("/path")] // *Optional pathPrefix
class TestController {
#[Route("/test", method: "GET")] // *Optional method (default: GET)
public static function test($req, $res) {
return "Hi";
}
}
// index.php
...
$router->addController(TestController::class);
5.0.2
Fixed page not found
5.0.1
Added beforeInterceptor, attributes and notFound