PHPackages                             lion/route - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lion/route

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lion/route
==========

This library has quick router usage with regular expressions.

v13.1.2(1mo ago)14.9k2MITPHPPHP &gt;=8.5CI passing

Since Mar 3Pushed 2w ago1 watchersCompare

[ Source](https://github.com/Lion-Packages/route)[ Packagist](https://packagist.org/packages/lion/route)[ RSS](/packages/lion-route/feed)WikiDiscussions 13.x Synced 3w ago

READMEChangelog (10)Dependencies (24)Versions (75)Used By (2)

[ ![presentation-lion-packages](https://private-user-images.githubusercontent.com/56183278/521014987-2707c5ff-b2c7-496a-ac72-c1ca5fa527b8.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODA3NzU5OTUsIm5iZiI6MTc4MDc3NTY5NSwicGF0aCI6Ii81NjE4MzI3OC81MjEwMTQ5ODctMjcwN2M1ZmYtYjJjNy00OTZhLWFjNzItYzFjYTVmYTUyN2I4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA2MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNjA2VDE5NTQ1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg2M2M1ZjYxOTljM2NmM2FlNzJiYTIwMGI1MDNlZmRkZGJhYjNjYTZiYzFiNTcxNTUwMzgzOTVlM2FiOWU5YjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.MTglB6eDWgjhXaPHgYN1Y7iytJdE6XGmQAaL-0t69KQ)](https://dev.lion-packages.com/docs/library/content) [ ![Latest Stable Version](https://camo.githubusercontent.com/80e1de6f19ef1cb237779c0d288a8da5ab86154c41d4daec0f1bf5843c4e9087/68747470733a2f2f706f7365722e707567782e6f72672f6c696f6e2f726f7574652f76) ](https://packagist.org/packages/lion/route) [ ![Total Downloads](https://camo.githubusercontent.com/e85d91e22cc384c4796588bbef067bea37ecb22dcd92f0b7f31e9d3ec66ce2bc/68747470733a2f2f706f7365722e707567782e6f72672f6c696f6e2f726f7574652f646f776e6c6f616473) ](https://packagist.org/packages/lion/route) [ ![License](https://camo.githubusercontent.com/f5cf2bb0002cd2c64ce451ab2ad9ab02c464dcceb3e1017b5b26b08cc707cbab/68747470733a2f2f706f7365722e707567782e6f72672f6c696f6e2f726f7574652f6c6963656e7365) ](https://github.com/lion-packages/route/blob/main/LICENSE) [ ![PHP Version Require](https://camo.githubusercontent.com/ee2ccdfec39d79b73983b25f39f61371c50a30d4b43a5204185546215da091a8/68747470733a2f2f706f7365722e707567782e6f72672f6c696f6e2f726f7574652f726571756972652f706870) ](https://www.php.net/)

🚀 **Lion-Route** This library has quick router usage with regular expressions.

---

📖 Features
----------

[](#-features)

✔️ Supports post, get, put, delete, options, and match methods.
✔️ Middleware Support.
✔️ Support with route group.

---

📦 Installation
--------------

[](#-installation)

Install the route using **Composer**:

```
composer require lion/route lion/exceptions lion/request lion/security lion/dependency-injection
```

Usage Example
-------------

[](#usage-example)

```
