PHPackages                             ksevendev/fast-route - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ksevendev/fast-route

ActiveLibrary

ksevendev/fast-route
====================

Fast request router for PHP

2.0.2(1y ago)08BSD-3-ClausePHPPHP &gt;=8.1.0

Since Feb 23Pushed 1y agoCompare

[ Source](https://github.com/ksevendev/FastRoute)[ Packagist](https://packagist.org/packages/ksevendev/fast-route)[ RSS](/packages/ksevendev-fast-route/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (9)Versions (3)Used By (0)

FastRoute - Fast request router for PHP
=======================================

[](#fastroute---fast-request-router-for-php)

[![Build Status](https://camo.githubusercontent.com/f2c1cb13c618f7a73e4ff9cabc990a0b208a18f2805d52277df9beea1e5d099e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e696b69632f46617374526f7574652f706870756e69742e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/nikic/FastRoute/actions?query=workflow%3A%22PHPUnit%20Tests%22+branch%3Amaster)

This library provides a fast implementation of a regular expression based router. \[Blog post explaining how the implementation works and why it is fast.\]\[blog\_post\]

Install
-------

[](#install)

To install with composer:

```
composer require ksevendev/fast-route
```

Requires PHP 8.1 or newer.

Usage
-----

[](#usage)

Here's a basic usage example:

```
