PHPackages                             sagar-s-bhedodkar/laravel-modular-routes - 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. sagar-s-bhedodkar/laravel-modular-routes

ActiveLibrary

sagar-s-bhedodkar/laravel-modular-routes
========================================

Easily manage modular routes in Laravel projects — automatically generate, organize, and load module routes and controllers. Keep your application clean, scalable, and production-ready with minimal setup. Each module can have its own routes, controllers, views, and tests, making large applications easier to maintain. Automatically detects and registers module routes without manual imports, saving development time. Ideal for teams, enterprise projects, and developers who want a professional, modular Laravel architecture.

v1.0.1(6mo ago)06MITPHPPHP ^8.1

Since Oct 15Pushed 6mo agoCompare

[ Source](https://github.com/sagar-s-bhedodkar/laravel-modular-routes)[ Packagist](https://packagist.org/packages/sagar-s-bhedodkar/laravel-modular-routes)[ RSS](/packages/sagar-s-bhedodkar-laravel-modular-routes/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

🧱 Laravel Modular Routes
========================

[](#-laravel-modular-routes)

> **Easily manage modular routes in Laravel projects — automatically create, load, and organize module routes and controllers in a professional, production-ready way.**

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](LICENSE)[![Laravel](https://camo.githubusercontent.com/73692ab0f1fac2901149539199fa738ac249d6cd2387048e8063666cfab3d736/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31302e7825323025374325323031312e7825323025374325323031322e782d7265642e737667)](https://laravel.com)[![Packagist](https://camo.githubusercontent.com/c4a9777be48145f7defc8bf2926e3a1e07bcc7d62841c039daf8ee3b6ca65f0b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616761722d732d626865646f646b61722f6c61726176656c2d6d6f64756c61722d726f757465732e737667)](https://packagist.org/packages/sagar-s-bhedodkar/laravel-modular-routes)[![GitHub stars](https://camo.githubusercontent.com/91a4be7eb65cb2b0e355461c9c3bc41919499f1aa6e7cee1b86392e1ac381387/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f73616761722d732d626865646f646b61722f6c61726176656c2d6d6f64756c61722d726f757465732e737667)](https://github.com/sagar-s-bhedodkar/laravel-modular-routes/stargazers)

---

📘 Table of Contents
-------------------

[](#-table-of-contents)

- [Introduction](#-introduction)
- [Features](#-features)
- [Installation](#-installation)
- [Usage](#-usage)
- [Example Workflow](#-example-workflow)
- [Contributing](#-contributing)
- [License](#-license)
- [Author](#-author)

---

🚀 Introduction
--------------

[](#-introduction)

**Laravel Modular Routes** is a lightweight package for **modular route management**. It allows developers to automatically create modules with controllers and route files and load them dynamically, keeping your application organized and production-ready.

Create a module in seconds:

```
php artisan make:module Customer
```

The routes and controllers are automatically generated and ready for use.

---

✨ Features
----------

[](#-features)

- 🧩 Automatic module scaffolding
- 📂 Supports API and Web routes per module
- 🔄 Dynamic autoloading of module classes (no composer.json edits required)
- ⚙️ Artisan commands for module management:

    - `make:module` — Create a new module with CRUD routes
    - `module:list` — List all modules
    - `module:clear-cache` — Clear module cache
- 🧹 Clean folder structure (`Modules/ModuleName/`)
- ✅ Production-ready, scalable approach for large applications

---

⚙️ Installation
---------------

[](#️-installation)

Require the package via Composer:

```
composer require sagar-s-bhedodkar/laravel-modular-routes:@dev
```

The package auto-discovers itself; no manual registration is required.

---

🧠 Usage
-------

[](#-usage)

### ➕ Create a module

[](#-create-a-module)

```
php artisan make:module Customer
```

This generates:

```
Modules/
 └── Customer/
     ├── Routes/api.php
     └── Http/Controllers/CustomerController.php

```

### 📝 Access routes

[](#-access-routes)

For example, if your module is `Customer`:

- GET `/api/customer` → List all customers
- POST `/api/customer` → Create a new customer
- GET `/api/customer/{id}` → Show customer
- PUT `/api/customer/{id}` → Update customer
- DELETE `/api/customer/{id}` → Delete customer

### 🔄 List modules

[](#-list-modules)

```
php artisan module:list
```

### 🧹 Clear module cache

[](#-clear-module-cache)

```
php artisan module:clear-cache
```

---

🧩 Example Workflow
------------------

[](#-example-workflow)

1. Run `php artisan make:module Customer`
2. Add business logic to `CustomerController`
3. Routes are automatically available under `/api/customer`
4. Add more modules similarly without touching core routes

---

🤝 Contributing
--------------

[](#-contributing)

Contributions are welcome!

1. Fork the repository
2. Create a feature branch: `git checkout -b feature/new-feature`
3. Commit your changes: `git commit -m "Add new feature"`
4. Push to your fork: `git push origin feature/new-feature`
5. Submit a Pull Request 🎉

---

📄 License
---------

[](#-license)

This package is open-sourced software licensed under the **MIT license**.

---

👨‍💻 Author
----------

[](#‍-author)

**Sagar Sunil Bhedodkar**📧 🌐 [GitHub Profile](https://github.com/sagar-s-bhedodkar)

---

> Made with ❤️ for Laravel developers who value modularity, automation, and production-ready code.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance65

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

209d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f14a63a25120de3ec7ce2eff77be8ba80345f1de81a84ceaa719ae9d1534687?d=identicon)[sbsagar](/maintainers/sbsagar)

---

Top Contributors

[![sbsaga](https://avatars.githubusercontent.com/u/110087468?v=4)](https://github.com/sbsaga "sbsaga (12 commits)")

### Embed Badge

![Health badge](/badges/sagar-s-bhedodkar-laravel-modular-routes/health.svg)

```
[![Health](https://phpackages.com/badges/sagar-s-bhedodkar-laravel-modular-routes/health.svg)](https://phpackages.com/packages/sagar-s-bhedodkar-laravel-modular-routes)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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