PHPackages                             azjezz/hack-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. [API Development](/categories/api)
4. /
5. azjezz/hack-routing

ActiveLibrary[API Development](/categories/api)

azjezz/hack-routing
===================

Fast, type-safe request routing, parameter retrieval, and link generation.

261.1k[1 issues](https://github.com/azjezz/hack-routing/issues)PHP

Since Jun 10Pushed 5y ago4 watchersCompare

[ Source](https://github.com/azjezz/hack-routing)[ Packagist](https://packagist.org/packages/azjezz/hack-routing)[ RSS](/packages/azjezz-hack-routing/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Hack-Routing
============

[](#hack-routing)

[![Unit tests status](https://github.com/azjezz/hack-routing/workflows/unit%20tests/badge.svg)](https://github.com/azjezz/hack-routing/workflows/unit%20tests/badge.svg)[![Static analysis status](https://github.com/azjezz/hack-routing/workflows/static%20analysis/badge.svg)](https://github.com/azjezz/hack-routing/workflows/static%20analysis/badge.svg)[![Coding standards status](https://github.com/azjezz/hack-routing/workflows/coding%20standards/badge.svg)](https://github.com/azjezz/hack-routing/workflows/coding%20standards/badge.svg)[![Type Coverage](https://camo.githubusercontent.com/91323f606159f7be361d08519ca111a47436d540fbb48703731a58e656be83b4/68747470733a2f2f73686570686572642e6465762f6769746875622f617a6a657a7a2f6861636b2d726f7574696e672f636f7665726167652e737667)](https://shepherd.dev/github/azjezz/hack-routing)[![Total Downloads](https://camo.githubusercontent.com/5fc591660d819b030d9dfb510ec870652a924b7003216585f9797afc3dd78711/68747470733a2f2f706f7365722e707567782e6f72672f617a6a657a7a2f6861636b2d726f7574696e672f642f746f74616c2e737667)](https://packagist.org/packages/azjezz/hack-routing)[![Latest Stable Version](https://camo.githubusercontent.com/6a1d973f0ad80de5a05309f0c03a91cba550e9e48d782b21a08af4a743ad8f27/68747470733a2f2f706f7365722e707567782e6f72672f617a6a657a7a2f6861636b2d726f7574696e672f762f737461626c652e737667)](https://packagist.org/packages/azjezz/hack-routing)[![License](https://camo.githubusercontent.com/3cf9791fd07961a6bf7aa9a7d5238de108460b42aa9ea11e26874aad348f0fde/68747470733a2f2f706f7365722e707567782e6f72672f617a6a657a7a2f6861636b2d726f7574696e672f6c6963656e73652e737667)](https://packagist.org/packages/azjezz/hack-routing)

Fast, type-safe request routing, parameter retrieval, and link generation.

It's a port of [hack-router](https://github.com/hhvm/hack-router) By Facebook, Inc.

Components
----------

[](#components)

### HTTP Exceptions

[](#http-exceptions)

Exception classes representing common situations in HTTP applications:

- `HackRouting\HttpException\InternalServerErrorException`
- `HackRouting\HttpException\MethodNotAllowedException`
- `HackRouting\HttpException\NotFoundException`

### Router

[](#router)

A simple typed request router. Example:

```
