Present Progressive

Route Attributes

Use PHP8 attributes to define metadata for your custom routes in separate files.

// site/routes/my-awesome-route.php
use PresProg\RouteAttributes\Attributes\Get;

return #[Get('/hello')] function () {
    return '<h1>Hello world!</h1>';
};
Version
0.1.0
License
MIT
Stars
9
Supports
K4 K3
Latest releases
More