PHPackages                             presprog/kirby-route-attributes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. presprog/kirby-route-attributes

ActiveKirby-plugin[Utility &amp; Helpers](/categories/utility)

presprog/kirby-route-attributes
===============================

0.1.0(4y ago)77MITPHPPHP ^8.0

Since May 31Pushed 4y ago2 watchersCompare

[ Source](https://github.com/presprog/kirby-route-attributes)[ Packagist](https://packagist.org/packages/presprog/kirby-route-attributes)[ RSS](/packages/presprog-kirby-route-attributes/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Kirby routing with attributes
=============================

[](#kirby-routing-with-attributes)

Load routes from `site/routes` and annotate metadata with PHP 8 attributes. No more business logic in your config files 🎉

---

Usage
-----

[](#usage)

After [installing](#Installation), create a new folder `site/routes`. Then create a new file for each route you want to add. The filename does not matter, but every file must return a function, that is annotated with the provided PHP 8 attributes:

```
// site/routes/my-awesome-route.php
