PHPackages                             twirelab/laravel-router - 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. twirelab/laravel-router

ActiveLibrary[Framework](/categories/framework)

twirelab/laravel-router
=======================

The new way of routing for the Laravel

v0.3.0(1y ago)1243[1 PRs](https://github.com/Twirelab/laravel-router/pulls)MITPHPPHP ^8.1

Since Aug 16Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/Twirelab/laravel-router)[ Packagist](https://packagist.org/packages/twirelab/laravel-router)[ RSS](/packages/twirelab-laravel-router/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (7)Used By (0)

Laravel Router
==============

[](#laravel-router)

> Attention! This package is not suitable for use in production.

The router is a new way of defining routes in the Laravel framework using annotations.

**Requirements**

- Laravel 8 or above.
- PHP 8.1 or above.

Installation
------------

[](#installation)

1. Install the package via composer

```
composer require twirelab/laravel-router
```

2. Done! It was simple.

Usage
-----

[](#usage)

### Laravel 10 and below

[](#laravel-10-and-below)

In the place where you define routes (ex. `RouteServiceProvider`) you need to call a **Loader** class from the package.

The default class:

```
