Pathfinder is a lean and fast PHP router built on the Trie (or
prefix tree) search algorithm. Its design enables quick lookups and is optimized for high performance.
If you’d like to use the lower-level Pathfinder class directly, please refer to the
appropriate documentation section. The Router class provides a convenient
wrapper and performs matching against PSR-7 ServerRequestInterface objects.
To get started, create a Router instance, define your routes, and then match your incoming request: