A request router based on the FastRoute library

1.0.0 2023-10-11 19:35 UTC

This package is auto-updated.

Last update: 2024-09-13 08:05:23 UTC


README

A request router based on the FastRoute library.

Give Up GitHub

This project has given up GitHub. (See Software Freedom Conservancy's Give Up GitHub site for details.)

Join us; you can give up GitHub too!

Route caching on production

On instantiating the router, all routes from the route collection are added to the route collector, independent of the cache settings. If caching is enabled, then the route data collected from the route collector will also be written to the cache file. If the parent directory of the file doesn't exist yet, then it will be created.

On request dispatching, if caching is enabled and the cache file exists, then the route data collected from the cache file will be read. Otherwise the route data collected from the route collector will be read.