phact-cmf/router

v1.0.0 2020-06-02 10:44 UTC

This package is auto-updated.

Last update: 2024-04-29 04:20:52 UTC


README

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.