Follows PSR-7, PSR-15, and PSR-1, PSR-2, PSR-4, PSR-11, PSR-16.
Based on FastRoute, inspired by league/route.
- follow PSR-7/PSR-15 or using FastRoute approach
- reversed routing (URL generation by route name)
- almost native FastRoute with possibility of using various processing strategies (CharCountBased, GroupCountBased...)
- fast multiple dispatch and reverse (with ability to add routes dynamically)
- allows using custom Loader (allows to load routes from different formats, files, etc.)
- allows caching (PSR-16)
- flexible (you can replace any component: Invoker, Dispatcher, Reverser, etc.)
composer require phact-cmf/router
- PHP >= 7.2
Доступна полная документация на русском языке
The MIT License (MIT). License File.