PHPackages                             vaened/laravel-route-moduler - 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. vaened/laravel-route-moduler

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

vaened/laravel-route-moduler
============================

v2.1.0(1y ago)2127.1k↓15.8%MITPHPPHP ^8.2CI passing

Since Apr 19Pushed 1y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (4)Versions (13)Used By (0)

Laravel Route Moduler
=====================

[](#laravel-route-moduler)

[![Build Status](https://github.com/vaened/laravel-route-moduler/actions/workflows/tests.yml/badge.svg)](https://github.com/vaened/laravel-route-moduler/actions?query=workflow:Tests) [![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](license)

Separate laravel routes by modules and submodules

```
└── routes
    └── api
        └── clients.php
        └── payments.php
        └── store.php
```

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

[](#installation)

Laravel Route Moduler requires PHP 8.2. To get the latest version, simply require the project using Composer:

```
composer require vaened/laravel-route-moduler
```

Now. Publish the configuration file.

```
php artisan vendor:publish --tag='laravel-route-moduler'
```

Usage
-----

[](#usage)

Once the library is installed, you can start organizing your routes within the /routes/modules folder, which is the default location. If you prefer a different location, you can update it in the [route-modules.php](./config/route-modules.php) configuration file.

```
├── routes
    └── modules
```

### Multiple Modules

[](#multiple-modules)

The [route-modules.php](./config/route-modules.php) configuration file returns an array for a single module setup. However, you can configure as many modules as you need by extending this array.

```
└── routes
    └── api
    └── web
    └── app
```

This structure helps to keep your application’s routes organized, making maintenance and scalability easier.

Configuration
-------------

[](#configuration)

You can customize the behavior of the `laravel-route-moduler` package through the route-modules.php configuration file. Below are the available options:

• **path**: Specifies where the route configuration files for the module are located. You can set this to a directory or a single file.

```
Example:
	Load all routes in a directory: 'path' => 'routes/modules'
	Single route file: 'path' => 'routes/users.php'

```

• **prefix**: Adds a prefix to the module path when the module is created, helping to make modules independent and supplement filename prefixes.

```
Example:
	'prefix' => 'admin'

```

• **named**: If true, the route file name will be used as a prefix for the routes defined in that file.

```
Example:
	If the file is users.php, all routes will be prefixed with users.

```

• **middleware**: Defines the default middleware applied to all routes registered by the module.

```
Example:
	'middleware' => ['web', 'auth']

```

These settings allow you to tailor the package to your application’s specific routing needs.

License
-------

[](#license)

This library is licensed under the MIT License. For more information, please see the [`license`](./license) file.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance44

Moderate activity, may be stable

Popularity34

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~62 days

Recently: every ~142 days

Total

12

Last Release

437d ago

Major Versions

v0.8 → v1.02023-08-20

v1.1 → v2.02024-08-06

PHP version history (3 changes)v0.1PHP ^8.1

v1.1PHP ^8.1|^8.2

v2.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/ebfa2dc9bcd9f9f7cea1f5473811d3c3904f60716e5605ab0d7208a9a6b81f09?d=identicon)[vaened](/maintainers/vaened)

---

Top Contributors

[![vaened](https://avatars.githubusercontent.com/u/15077850?v=4)](https://github.com/vaened "vaened (36 commits)")

---

Tags

laravel-packageroutes-api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vaened-laravel-route-moduler/health.svg)

```
[![Health](https://phpackages.com/badges/vaened-laravel-route-moduler/health.svg)](https://phpackages.com/packages/vaened-laravel-route-moduler)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
