Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.62 KB

README.md

File metadata and controls

41 lines (26 loc) · 1.62 KB

Router

Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status

Follows PSR-7, PSR-15, and PSR-1, PSR-2, PSR-4, PSR-11, PSR-16.

Based on FastRoute, inspired by league/route.

Main ideas

  • 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.)

Installation

composer require phact-cmf/router

Requirements

  • PHP >= 7.2

Documentation

Full documentation

Доступна полная документация на русском языке

License

The MIT License (MIT). License File.