laasti / directions
A HTTP message router using nikic's FastRoute.
v0.4.2
2020-10-29 19:17 UTC
Requires
- nikic/fast-route: ~1.3
- psr/http-message: ~1.0
Requires (Dev)
- laasti/application: dev-master
- laasti/peels: dev-master
- laminas/laminas-diactoros: ~2.4.1
- league/container: ~2.0.3
- phpunit/phpunit: ^5.7
Suggests
- laasti/peels: Middleware stack that can be used with Directions.
README
A HTTP message router using nikic's FastRoute
Features
- Use any callable as a controller, or use a Interop container value
- Use strategies to change how your routes are handled
- Add middlewares (callables) to your routes if your strategy supports it (requires laasti/peels)
- Personalize routes with attributes to help passing parameters to your controllers. Attributes are automatically distributes to the request's attributes
Todo
- Add your own parsing formats ie hex
Installation
composer require laasti/directions
Usage
TODO
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
History
See Github's releases
Credits
Author: Sonia Marquette (@nebulousGirl)
License
Released under the MIT License. See LICENSE.txt file.