Skip to content

Releases: interaapps/deverm-router

5.3.0

28 Jul 15:11
8b4544e
Compare
Choose a tag to compare
Added Response Transformers, Middlewares and more

5.2.1

28 Jul 00:17
9acc3f4
Compare
Choose a tag to compare
Added attributes for the http methods

5.2.0

27 Jul 23:16
72cf4ef
Compare
Choose a tag to compare
Added better system of Route Variables

5.1.0

24 Jul 15:55
911400c
Compare
Choose a tag to compare
Switched to php8.1 and removed old way of calling functions or methods

5.0.6

08 Dec 20:17
834842b
Compare
Choose a tag to compare
Fixed attributes

5.0.5

05 Oct 15:25
62365f8
Compare
Choose a tag to compare
Added JSONPlus for JSON-Parsing

5.0.4

19 Feb 13:27
Compare
Choose a tag to compare
Fixed methods

5.0.3

19 Feb 13:22
Compare
Choose a tag to compare

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

22 Nov 10:36
Compare
Choose a tag to compare
Fixed page not found

5.0.1

19 Nov 22:25
Compare
Choose a tag to compare
Added beforeInterceptor, attributes and notFound