lion / route
This library has quick router usage with regular expressions.
v13.1.3
2026-06-06 16:10 UTC
Requires
- php: >=8.5
- lion/phroute: ^2.3
Requires (Dev)
- guzzlehttp/guzzle: ^7.9
- infection/infection: ^0.29.14 || ^0.31.0 || ^0.32.0 || ^0.33.0
- lion/dependency-injection: ^4.2 || ^5.0
- lion/exceptions: ^2.0 || ^3.0
- lion/request: ^7.2 || ^8.0
- lion/security: ^11.1 || ^12.0
- lion/test: ^3.2 || ^4.0
- overtrue/phplint: ^9.5
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.0 || ^13.0
- squizlabs/php_codesniffer: ^3.11 || ^4.0
This package is auto-updated.
Last update: 2026-06-06 16:10:58 UTC
README
🚀 Lion-Route This library has quick router usage with regular expressions.
📖 Features
✔️ Supports post, get, put, delete, options, and match methods.
✔️ Middleware Support.
✔️ Support with route group.
📦 Installation
Install the route using Composer:
composer require lion/route lion/exceptions lion/request lion/security lion/dependency-injection
Usage Example
<?php declare(strict_types=1); use Lion\Route\Route; use App\Http\Controllers\UsersController; Route::init(); Route::get('users', function(UsersController $usersController): mixed { return $usersController->method(); }); Route::dispatch();
📝 License
The route is open-sourced software licensed under the MIT License.