PHPackages                             alexsisukin/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. [HTTP &amp; Networking](/categories/http)
4. /
5. alexsisukin/fast-route

ActiveLibrary[HTTP &amp; Networking](/categories/http)

alexsisukin/fast-route
======================

Fast request router for PHP

v1.2.1(8y ago)060BSD-3-ClausePHPPHP &gt;=5.4.0

Since Mar 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Alexsisukin/FastRoute)[ Packagist](https://packagist.org/packages/alexsisukin/fast-route)[ RSS](/packages/alexsisukin-fast-route/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (14)Used By (0)

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

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

This library provides a fast implementation of a regular expression based router. [Blog post explaining how the implementation works and why it is fast.](http://nikic.github.io/2014/02/18/Fast-request-routing-using-regular-expressions.html)

Install
-------

[](#install)

To install with composer:

```
composer require alexsisukin/fast-route
```

Requires PHP 5.6 or newer.

Usage
-----

[](#usage)

Here's a basic usage example:

```
