Skip to content

phact-cmf/Router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Router (PSR-7 / PSR-15 supports)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages