PHPackages                             duyphan2502/hmvc-tools - 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. duyphan2502/hmvc-tools

ActiveLibrary

duyphan2502/hmvc-tools
======================

1.0.7(6y ago)242869PHP

Since Mar 28Pushed 6y ago3 watchersCompare

[ Source](https://github.com/duyphan2502/hmvc-tools)[ Packagist](https://packagist.org/packages/duyphan2502/hmvc-tools)[ RSS](/packages/duyphan2502-hmvc-tools/feed)WikiDiscussions master Synced today

READMEChangelog (8)DependenciesVersions (9)Used By (0)

HMVC Tools
==========

[](#hmvc-tools)

Some available tools for HMVC Laravel projects.

### Installation

[](#installation)

```
composer require duyphan2502/hmvc-tools

```

Update your `composer.json`

```
{
    ...,
    "repositories": [
        {
            "type": "path",
            "url": "./platform/core/*"
        },
        {
            "type": "path",
            "url": "./platform/plugins/*"
        },
        {
            "type": "path",
            "url": "./platform/themes/*"
        }
    ]
}

```

Create new module
-----------------

[](#create-new-module)

```
php artisan module:create

```

For example

```
php artisan module:create test-module

```

After you create your module, open the `composer.json` file inside your module folder, you can see something like this

```
{
    "name": "plugins/test-module",
    "require": {},
    "require-dev": {},
    "autoload": {
        "psr-4": {
            "TestModule\\": "src/"
        }
    },
    "extra": [],
    "minimum-stability": "dev",
    "description": "Test HMVC module"
}

```

Run this command from terminal

```
composer require plugins/test-module:*@dev

```

You might need to register your module provider to `config/app.php`If you want Laravel auto register your module, you need to update the module `composer.json`

```
{
    "name": "plugins/test-module",
    "require": {},
    "require-dev": {},
    "autoload": {
        "psr-4": {
            "TestModule\\": "src/"
        }
    },
    "extra": [],
    "minimum-stability": "dev",
    "extra": {
        "laravel": {
            "providers": [
                "TestModule\\Providers\\ModuleServiceProvider"
            ]
        }
    },
    "description": "Test HMVC module"
}

```

Don't forget to run `composer update`.

Or you can skip these actions easier by adding option `--autoload` when you try `module:create`

```
php artisan module:create  --autoload

```

### Generate Model

[](#generate-model)

```
php artisan module:make:model

```

### Generate Controller

[](#generate-controller)

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

```

### Generate Migration

[](#generate-migration)

```
php artisan module:make:migration   {--create=table} {--table=table}

```

For example

```
php artisan module:make:migration test-module create_test_table --create=test

```

### Generate Command

[](#generate-command)

```
php artisan module:make:command

```

### Generate Facade

[](#generate-facade)

```
php artisan module:make:facade

```

### Generate Middleware

[](#generate-middleware)

```
php artisan module:make:middleware

```

### Generate Provider

[](#generate-provider)

```
php artisan module:make:provider

```

### Generate Form Request

[](#generate-form-request)

```
php artisan module:make:request

```

### Generate Support

[](#generate-support)

```
php artisan module:make:support

```

### Generate View Composer

[](#generate-view-composer)

```
php artisan module:make:composer

```

### Generate View

[](#generate-view)

```
php artisan module:make:provider

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 92.3% 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 ~1 days

Total

8

Last Release

2229d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/47bcbeebf1ad024129b9193552397badb7295699c553d7d3bfdcc63cdc01de84?d=identicon)[duyphan2502](/maintainers/duyphan2502)

---

Top Contributors

[![duysolo](https://avatars.githubusercontent.com/u/10369102?v=4)](https://github.com/duysolo "duysolo (12 commits)")[![chungtran4078](https://avatars.githubusercontent.com/u/46410548?v=4)](https://github.com/chungtran4078 "chungtran4078 (1 commits)")

### Embed Badge

![Health badge](/badges/duyphan2502-hmvc-tools/health.svg)

```
[![Health](https://phpackages.com/badges/duyphan2502-hmvc-tools/health.svg)](https://phpackages.com/packages/duyphan2502-hmvc-tools)
```

PHPackages © 2026

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