Skip to content

lion-packages/route

Repository files navigation

🦁 Lion-Route

Lion-Packages Logo

Latest Stable Version Total Downloads License PHP Version Require

🚀 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.