PHPackages                             icanboogie/routing - 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. [Framework](/categories/framework)
4. /
5. icanboogie/routing

ActiveLibrary[Framework](/categories/framework)

icanboogie/routing
==================

Request routing

v5.0.0(4y ago)56.5k1[2 issues](https://github.com/ICanBoogie/Routing/issues)3BSD-3-ClausePHPPHP &gt;=7.2

Since Oct 24Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/ICanBoogie/Routing)[ Packagist](https://packagist.org/packages/icanboogie/routing)[ Docs](https://icanboogie.org/)[ RSS](/packages/icanboogie-routing/feed)WikiDiscussions 6.0 Synced 1mo ago

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

Routing
=======

[](#routing)

[![Packagist](https://camo.githubusercontent.com/81250d7dca2b32c3ab197d23617554bdf46d492c581da67edcc74863411f9cc8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6963616e626f6f6769652f726f7574696e672e737667)](https://packagist.org/packages/icanboogie/routing)[![Code Coverage](https://camo.githubusercontent.com/2e73f15a232925a2d5e519c52fa406a43135a842b253edf062cc378b9ba608a3/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4943616e426f6f6769652f526f7574696e672f62616467652e7376673f6272616e63683d362e30)](https://coveralls.io/r/ICanBoogie/Routing?branch=6.0)[![Downloads](https://camo.githubusercontent.com/da9d5ad9133e6caeb6060589f7929a146528ca27465bd4125d014f03b05a96ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6963616e626f6f6769652f726f7574696e672e737667)](https://packagist.org/packages/icanboogie/routing)

The **icanboogie/routing** package handles URL rewriting in native PHP. A Request is mapped to a Route, which in turn is mapped to a Responder. If the process is successful a response is returned. Events are emitted along the way to allow listeners to alter the request or the response, or recover from failure.

The following example is an overview of request processing. The routing components are part of the stack of responder providers.

```
