PHPackages                             dot-env-it/laravel-module-boilerplate - 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. dot-env-it/laravel-module-boilerplate

ActiveLibrary[Framework](/categories/framework)

dot-env-it/laravel-module-boilerplate
=====================================

A streamlined boilerplate generator for modular Laravel architectures.

v1.0.1(1mo ago)07↓100%MITPHPPHP ^8.2CI passing

Since Apr 26Pushed 1mo agoCompare

[ Source](https://github.com/dot-env-it/laravel-module-boilerplate)[ Packagist](https://packagist.org/packages/dot-env-it/laravel-module-boilerplate)[ Fund](https://www.buymeacoffee.com/jagdish.j.ptl)[ Fund](https://paypal.me/jagdishjptl)[ RSS](/packages/dot-env-it-laravel-module-boilerplate/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Laravel Module Boilerplate
==========================

[](#laravel-module-boilerplate)

  ![Laravel Module Boilerplate](https://camo.githubusercontent.com/1bedef620778762c9e1975ba844e81e7a00428c755c42d1b8264d7da5aac14ae/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c2532304d6f64756c65253230426f696c6572706c6174652e706e673f7061747465726e3d746f706f677261706879267374796c653d7374796c655f3226666f6e7453697a653d3130307078266d643d312673686f7757617465726d61726b3d31267468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d646f742d656e762d69742532466c61726176656c2d6d6f64756c652d626f696c6572706c617465266465736372697074696f6e3d412b73747265616d6c696e65642b626f696c6572706c6174652b67656e657261746f722b666f722b6d6f64756c61722b4c61726176656c2b617263686974656374757265732e26696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)[](https://www.google.com/search?q=https://github.com/dot-env-it/laravel-module-boilerplate)[](https://opensource.org/licenses/MIT)

A high-performance modular architecture generator designed for Laravel. This package allows you to quickly scaffold entire modules (Controllers, Models, Services, etc.) within a `modules/` directory.

---

🚀 Installation
--------------

[](#-installation)

This package is intended for **local development only**. Do not install it in production.

### 1. Require the Package

[](#1-require-the-package)

Install via Composer using the `--dev` flag:

```
composer require dot-env-it/laravel-module-boilerplate --dev
```

### 2. Publish Stubs (Optional)

[](#2-publish-stubs-optional)

If you wish to customize the templates used for generation, publish the stubs to your project root:

```
php artisan vendor:publish --tag=module-boilerplate-stubs
```

The stubs will be available in `stubs/vendor/dot-env-it/`.

---

🛠 Usage
-------

[](#-usage)

### Generate a Full Module

[](#generate-a-full-module)

To scaffold a complete module structure:

```
php artisan module:make Blog
```

### Custom JS Path

[](#custom-js-path)

If you use a non-standard directory for your frontend assets:

```
php artisan module:make Blog --js-path=Assets/scripts
```

### Available Sub-Commands

[](#available-sub-commands)

You can also generate individual components within a module:

- `php artisan module:controller {name} --module={module}`
- `php artisan module:model {name} --module={module}`
- `php artisan module:service {name} --module={module}`
- `php artisan module:request {name} --module={module}`
- *(And 14+ other specialized commands)*

---

📂 Module Structure
------------------

[](#-module-structure)

Generated modules follow this clean architecture:

```
app/
├──Modules/
│  └── Blog/
│        ├── Actions/
│        ├── DataTables/
│        ├── Http/
│        │   ├── Controllers/
│        │   ├── Payloads/
│        │   ├── Requests/
│        │   └── Resources/
│        ├── Models/
│        ├── Queries/
│        └── Services/
└──resources/
   ├──custom-js-path/modules/blog
   └──views/modules/blog

```

It also creates permissions if `spatie/laravel-permission` package is installed.

---

🛡 Security &amp; Environment
----------------------------

[](#-security--environment)

This package automatically disables its commands when `APP_ENV` is set to `production`. This ensures that your file system remain protected in live environments.

👥 Credits
---------

[](#-credits)

- **dot-env-it** ()

📄 License
---------

[](#-license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

---

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance91

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

44d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e7c021b8f19406056e9a24ec8d268cec00f1a9d77bd72d8cc5cb0a6fbc6a178?d=identicon)[Jagdish-J-P](/maintainers/Jagdish-J-P)

---

Top Contributors

[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/dot-env-it-laravel-module-boilerplate/health.svg)

```
[![Health](https://phpackages.com/badges/dot-env-it-laravel-module-boilerplate/health.svg)](https://phpackages.com/packages/dot-env-it-laravel-module-boilerplate)
```

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.1k91.3M277](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k199.2M1.2k](/packages/laravel-sail)[laravel/ai

The official AI SDK for Laravel.

9782.1M153](/packages/laravel-ai)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

76318.2M110](/packages/laravel-mcp)[illuminate/routing

The Illuminate Routing package.

1239.0M2.8k](/packages/illuminate-routing)[laravel/surveyor

Static analysis tool for Laravel applications.

8390.3k12](/packages/laravel-surveyor)

PHPackages © 2026

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