PHPackages                             heropoo/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. heropoo/routing

ActiveLibrary[Framework](/categories/framework)

heropoo/routing
===============

A simple and fast route. Use tree structure storage, fast matching!

v0.8.6(4y ago)105.7k41MITPHPPHP &gt;=5.4

Since Aug 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/heropoo/routing)[ Packagist](https://packagist.org/packages/heropoo/routing)[ RSS](/packages/heropoo-routing/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (23)Used By (1)

Routing
=======

[](#routing)

A simple and fast route.Use tree structure storage, fast matching! If you like, order a star for me~ ⭐

一个简单快速的路由，使用树形结构存储匹配更快！ 如果你喜欢，帮我点个star吧~ ⭐

[中文说明](./README_CN.md)

[![Latest Stable Version](https://camo.githubusercontent.com/0d0915bad4173eee654352b19ec5c83ca0457e1f6bbc547bfbfa9bd58acbd4b9/68747470733a2f2f706f7365722e707567782e6f72672f6865726f706f6f2f726f7574696e672f762f737461626c65)](https://packagist.org/packages/heropoo/routing)[![Total Downloads](https://camo.githubusercontent.com/430f3e4ac052279497108ca530b08843942d118e586c329af3842b842b63d7fa/68747470733a2f2f706f7365722e707567782e6f72672f6865726f706f6f2f726f7574696e672f646f776e6c6f616473)](https://packagist.org/packages/heropoo/routing)[![License](https://camo.githubusercontent.com/b084d7baebf3b5dd1cebe7cb6b4f9217ed3bcd88fea542927ec7c0ab34087c6f/68747470733a2f2f706f7365722e707567782e6f72672f6865726f706f6f2f726f7574696e672f6c6963656e7365)](./LICENSE)

Install
-------

[](#install)

To install it via `composer`

```
composer require heropoo/routing
```

Feature
-------

[](#feature)

- Support restful style route
- Support route group and add some attributes (like namespace,middleware,prefix..)
- Support route params and limit param's type
- Support regex
- Use tree structure storage, fast matching!

Example:
--------

[](#example)

```
