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

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

bonfim/router
=============

A fast and powerful router that maps route callbacks to specific HTTP request methods and URIs. It supports parameters and pattern matching

v1.0.2(7y ago)217MITPHPPHP &gt;=7.1.0

Since Apr 29Pushed 6y agoCompare

[ Source](https://github.com/BonfimLabs/PHP-HTTP-Router)[ Packagist](https://packagist.org/packages/bonfim/router)[ Docs](https://github.com/EdsonOnildoJR/Router)[ RSS](/packages/bonfim-router/feed)WikiDiscussions master Synced 3d ago

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

Router
======

[](#router)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b524337ae34be476016bd845f2358ad5caecae847e969c6d30233818e26d3def/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626f6e66696d2f726f757465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bonfim/router)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/4d2e162dc63648188ce8fc974b76f2eacb1af4a7671a26fcbdd54a85cc47bd2a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f426f6e66696d4c6162732f5048502d485454502d526f757465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/BonfimLabs/PHP-HTTP-Router)[![Coverage Status](https://camo.githubusercontent.com/e049523fe448333382f3458897c51d66c37ac07d14b1c757a8c849662e257f24/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f426f6e66696d4c6162732f5048502d485454502d526f757465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/BonfimLabs/PHP-HTTP-Router/code-structure)[![Quality Score](https://camo.githubusercontent.com/bd983ce7745ba235e8faf58ab177aafa38a2300bf62ebac722716a88ac85b627/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f426f6e66696d4c6162732f5048502d485454502d526f757465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/BonfimLabs/PHP-HTTP-Router)[![Total Downloads](https://camo.githubusercontent.com/cf8a99875c6668e527133de7aed269be2cb9b13a9624ccffe28e253ed60f63d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626f6e66696d2f726f757465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bonfim/router)

Install
-------

[](#install)

Via Composer

```
$ composer require bonfim/router
```

Basic Usage
-----------

[](#basic-usage)

Include the autoloader of composer:

```
