PHPackages                             mqondisi/laravel-module-generator - 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. mqondisi/laravel-module-generator

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

mqondisi/laravel-module-generator
=================================

Opinionated Laravel 9–13 module scaffolding (model, migration, repository, DTO, optional DAO, controllers)

v1.0.0-beta(3mo ago)0131↓88.9%MITPHPPHP ^8.1

Since Mar 30Pushed 3mo agoCompare

[ Source](https://github.com/mqoey/laravel-module-generator)[ Packagist](https://packagist.org/packages/mqondisi/laravel-module-generator)[ RSS](/packages/mqondisi-laravel-module-generator/feed)WikiDiscussions master Synced 3w ago

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

Laravel Module Generator
========================

[](#laravel-module-generator)

Opinionated scaffolding for Laravel: model, migration, repository (+ interface), Spatie-style DTO stub, optional DAO layer, and HTTP controllers. Skips existing files unless you pass `--force`.

**Published on Packagist:** [`mqondisi/laravel-module-generator`](https://packagist.org/packages/mqondisi/laravel-module-generator)

Requirements
------------

[](#requirements)

- PHP `^8.1`
- Laravel **9.x through 13.x** (via `illuminate/*` `^9`–`^13`)

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

[](#installation)

```
composer require mqondisi/laravel-module-generator
```

The service provider is **auto-discovered**; you do not need to register it manually in most apps.

For bleeding-edge changes from GitHub:

```
composer require mqondisi/laravel-module-generator:dev-master
```

Optional: Spatie Laravel Data
-----------------------------

[](#optional-spatie-laravel-data)

Generated DTOs under `app/Data` extend `Spatie\LaravelData\Data`. The package **suggests** installing Spatie in your application (it is not a hard dependency of this package, to avoid unnecessary transitive conflicts):

```
composer require spatie/laravel-data:^4
```

Usage
-----

[](#usage)

```
php artisan make:module Customer --api
php artisan make:module Customer --inertia
php artisan make:module Customer --tenant
php artisan make:module Customer --with-dao
php artisan make:module Customer --api --tenant --with-dao
```

Flags can be combined. With both `--api` and `--inertia`, an API controller and a web Inertia controller are generated (plus a page stub when Inertia is used).

OptionEffect`--api`JSON API controller under `app/Http/Controllers/Api``--inertia`Web controller + page stub under `resources/js/Pages/.../` (`Index.vue`, `Index.jsx`, or `Index.svelte`)`--inertia-stack`With `--inertia`: `vue` (default), `react`, or `svelte` — picks stub file and extension`--tenant``team_id` on migration, model global scope / `scopeTeam`, tenant docblocks`--with-dao``app/DAO` + `app/DAO/Interfaces`; repository depends on the DAO only`--force`Overwrite files that already exist (use with care)Examples:

```
php artisan make:module Customer --inertia --inertia-stack=react
php artisan make:module Customer --inertia --inertia-stack=svelte
```

After a run, the command prints **Created**, **Skipped**, and **Overwritten** lines plus a short summary.

Repository bindings
-------------------

[](#repository-bindings)

The generator creates or updates `app/Providers/RepositoryServiceProvider.php` and may append your provider to `config/app.php` when that file uses the usual `AppServiceProvider::class` marker (Laravel 9–10 style). On Laravel 11+, register `App\Providers\RepositoryServiceProvider::class` in `bootstrap/providers.php` if it is not picked up automatically.

License
-------

[](#license)

MIT

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance82

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

91d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a09c7925525d8cbc7ae302984eb0c95e6881bcf19ca131e4e2c147304cff161?d=identicon)[mqoey](/maintainers/mqoey)

---

Top Contributors

[![mqoey](https://avatars.githubusercontent.com/u/57135780?v=4)](https://github.com/mqoey "mqoey (6 commits)")

### Embed Badge

![Health badge](/badges/mqondisi-laravel-module-generator/health.svg)

```
[![Health](https://phpackages.com/badges/mqondisi-laravel-module-generator/health.svg)](https://phpackages.com/packages/mqondisi-laravel-module-generator)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M162](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

20432.2M1.5k](/packages/illuminate-queue)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[illuminate/session

The Illuminate Session package.

9938.5M823](/packages/illuminate-session)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

721160.4k12](/packages/tallstackui-tallstackui)

PHPackages © 2026

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