PHPackages                             tienhm7/laravel-hmvc-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. [Framework](/categories/framework)
4. /
5. tienhm7/laravel-hmvc-generator

ActiveLibrary[Framework](/categories/framework)

tienhm7/laravel-hmvc-generator
==============================

this package which created to manage your large by modules using HMVC architectural pattern

v1.0.0(3y ago)023MITPHPPHP &gt;=7.4

Since Jul 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/tienhm7/laravel-hmvc-generator)[ Packagist](https://packagist.org/packages/tienhm7/laravel-hmvc-generator)[ Docs](https://github.com/tienhm7/laravel-hmvc-generator)[ RSS](/packages/tienhm7-laravel-hmvc-generator/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/78c2eb43f2904f5437a754f58fa37d2b58413208552d4c8ad366c0d58a08a411/68747470733a2f2f706f7365722e707567782e6f72672f7469656e686d372f6c61726176656c2d686d76632d67656e657261746f722f762f737461626c65)](https://packagist.org/packages/tienhm7/laravel-hmvc-generator)[![Total Downloads](https://camo.githubusercontent.com/c947e666199b718f50ea76def0ad2c81b05e1cc109a78498a37c1436a8ff0e65/68747470733a2f2f706f7365722e707567782e6f72672f7469656e686d372f6c61726176656c2d686d76632d67656e657261746f722f646f776e6c6f616473)](https://packagist.org/packages/tienhm7/laravel-hmvc-generator)[![Latest Unstable Version](https://camo.githubusercontent.com/a10f099198f7e56f498b50ae8952722379199b6ab6c4278fc4fc8d0ce97f4463/68747470733a2f2f706f7365722e707567782e6f72672f7469656e686d372f6c61726176656c2d686d76632d67656e657261746f722f762f756e737461626c65)](https://packagist.org/packages/tienhm7/laravel-hmvc-generator)[![composer.lock](https://camo.githubusercontent.com/dd0ce61f0de5283abbaf056379d0208dee70e656f5e2ccb6b558557695b2435a/68747470733a2f2f706f7365722e707567782e6f72672f7469656e686d372f6c61726176656c2d686d76632d67656e657261746f722f636f6d706f7365726c6f636b)](https://packagist.org/packages/tienhm7/laravel-hmvc-generator)[![License](https://camo.githubusercontent.com/49e7920ad69096a60ac16cdeb22704d932d23ee57a880934054641f070e7ece6/68747470733a2f2f706f7365722e707567782e6f72672f7469656e686d372f6c61726176656c2d686d76632d67656e657261746f722f6c6963656e7365)](https://packagist.org/packages/tienhm7/laravel-hmvc-generator)

HMVC\_Generator
===============

[](#hmvc_generator)

A Laravel package to create and manage your large laravel app using modules \[HMVC\]

### Folder Structure

[](#folder-structure)

- Modules
    - User
        - Config/
        - Database/
            - Migrations/
        - Http/
            - Controllers/
                - UserController.php
            - Middleware/
                - UserMiddleware.php
            - Requests/
                - UserRequest.php
        - Models/
            - User.php
        - Providers/
            - UserServiceProvider.php
        - Lang/
            - en/
            - vi/
        - Views/
            - index.blade.php
        - Routes/
            - web.php "All Routes under "users" prefix"
            - api.php "All Routes under "api/users" prefix"

### Artisan Commands

[](#artisan-commands)

- To create a new module you can simply run :

```
php artisan module:make

```

- Create new Controller for the specified module :

```
php artisan module:make-controller  --module=

```

- Create new Model for the specified module :

```
php artisan module:make-model  --module=

```

- Create new Middleware for the specified module :

```
php artisan module:make-middleware  --module=

```

- Create new Request for the specified module :

```
php artisan module:make-request  --module=

```

- Create new Migration for the specified module :

```
php artisan module:make-migration  --module= --table=

// Example:
php artisan module:make-migration create_posts_table --module=Post

```

### Routes

[](#routes)

> **api.php** =&gt; These routes are loaded by the &lt;module\_name&gt;ServiceProvider within a group which is assigned the "api" middleware group and "api/&lt;module\_name&gt;" prefix

> **web.php** =&gt; These routes are loaded by the &lt;module\_name&gt;ServiceProvider within a group which contains the "web" middleware group and "&lt;module\_name&gt;" prefix.

### Views

[](#views)

> Calling View: view('&lt;module\_name&gt;::view\_file\_name')

You need to add module service provider to the list of providers in the config/app.php file and run
---------------------------------------------------------------------------------------------------

[](#you-need-to-add-module-service-provider-to-the-list-of-providers-in-the-configappphp-file-and-run)

```
composer dump-autoload

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

1459d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/68004646?v=4)[tienhm7](/maintainers/tienhm7)[@tienhm7](https://github.com/tienhm7)

---

Top Contributors

[![tienhm7](https://avatars.githubusercontent.com/u/68004646?v=4)](https://github.com/tienhm7 "tienhm7 (2 commits)")

---

Tags

laravellibrarymoduleshmvclaravel-moduleslaravel hmvc

### Embed Badge

![Health badge](/badges/tienhm7-laravel-hmvc-generator/health.svg)

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

###  Alternatives

[pingpong/modules

Laravel Modules

590190.8k13](/packages/pingpong-modules)[mhmiton/laravel-modules-livewire

Using Laravel Livewire in Laravel Modules package with automatically registered livewire components for every modules.

236476.9k9](/packages/mhmiton-laravel-modules-livewire)[caffeinated/modules

Laravel Modules

965668.8k9](/packages/caffeinated-modules)

PHPackages © 2026

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