Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abbadon1334/atk4-fastroute
ATK4 Routing with FastRoute
https://github.com/abbadon1334/atk4-fastroute
agile atk4 fast-route routing
Last synced: 2 months 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-28T19:55:40.000Z (2 months ago)
- Last Synced: 2024-10-28T20:41:14.433Z (2 months ago)
- Topics: agile, atk4, fast-route, routing
- Language: PHP
- Homepage:
- Size: 215 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# atk4-fastroute
[![Build Status](https://travis-ci.com/abbadon1334/atk4-fastroute.svg?branch=develop)](https://travis-ci.com/abbadon1334/atk4-fastroute)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/79611f7a4f924e96bb86633cf60b5ecb)](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)
[![Coverage Status](https://coveralls.io/repos/github/abbadon1334/atk4-fastroute/badge.svg?branch=develop)](https://coveralls.io/github/abbadon1334/atk4-fastroute?branch=develop)
[![Test Coverage](https://api.codeclimate.com/v1/badges/ce40c7dd9e275e3833b1/test_coverage)](https://codeclimate.com/github/abbadon1334/atk4-fastroute/test_coverage)
[![Maintainability](https://api.codeclimate.com/v1/badges/ce40c7dd9e275e3833b1/maintainability)](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