https://github.com/abbadon1334/atk4-fastroute
ATK4 Routing with FastRoute
https://github.com/abbadon1334/atk4-fastroute
agile atk4 fast-route routing
Last synced: 11 days ago
JSON representation
ATK4 Routing with FastRoute
- Host: GitHub
- URL: https://github.com/abbadon1334/atk4-fastroute
- Owner: abbadon1334
- License: mit
- Created: 2019-06-29T07:43:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-17T23:24:54.000Z (about 1 month ago)
- Last Synced: 2025-03-26T18:52:18.131Z (29 days ago)
- Topics: agile, atk4, fast-route, routing
- Language: PHP
- Homepage:
- Size: 213 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# atk4-fastroute
[](https://travis-ci.com/abbadon1334/atk4-fastroute)
[](https://app.codacy.com/app/abbadon1334/atk4-fastroute?utm_source=github.com&utm_medium=referral&utm_content=abbadon1334/atk4-fastroute&utm_campaign=Badge_Grade_Dashboard)
[](https://coveralls.io/github/abbadon1334/atk4-fastroute?branch=develop)
[](https://codeclimate.com/github/abbadon1334/atk4-fastroute/test_coverage)
[](https://codeclimate.com/github/abbadon1334/atk4-fastroute/maintainability)ATK4 integration with FastRoute
Still needs :
- [x] more test for patterns route
- [x] test for calls with extraparameters
- [ ] check if can be simplified
- [ ] add Translation as option
- [ ] add slugging of routes
- [ ] check if can be added MiddlewareInterface
- [ ] to be executed by pattern (Another Router in Router that dispatch MW by route match) ?
- [ ] to be executed per route (before handlingRoute)?
- [ ] add comments to public methods!!!
- [ ] add documentationEXPERIMENTAL
-------------------Define routes :
- RoutedCallable : as Callable
- RoutedUI : as atk4/ui/* Class to be added to the App
- RoutedMethod : as Class Method to be called like a controller
Routes can be serialized as array to allow loading from external file.Using Interface implementation to define behaviour and needs of the class ( like flags ) :
- iBeforeRoutable : request method OnBeforeRoute which will be called right before OnRoute ( setting up app? )
- iAfterRoutable : request method OnAfterRoute which will be called right after OnRoute ( setup other elements? )
- iArrayable : have fromArray and toArray to be serializeable
- iNeedAppRun : if is needed to call ->app->run() after Routing method callsNext step
-----------------
- Having a collection of routes, that in the future can be translatable