PHPackages                             pedrofaria/router - 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. pedrofaria/router

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

pedrofaria/router
=================

Fast request router for PHP

v1.0.0(9y ago)0261BSD-3-ClausePHPPHP &gt;=5.4.0

Since Apr 9Pushed 9y agoCompare

[ Source](https://github.com/pedrofaria/router)[ Packagist](https://packagist.org/packages/pedrofaria/router)[ RSS](/packages/pedrofaria-router/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

Router - Fast request router for PHP
====================================

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

Credits
-------

[](#credits)

This library is a modification of [nikic/FastRoute](https://github.com/nikic/FastRoute) implementation.

---

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 pedrofaria/router
```

Requires PHP 5.4 or newer.

Usage
-----

[](#usage)

Here's a basic usage example:

```
