PHPackages                             sethsandaru/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sethsandaru/laravel-hmvc-generator

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

sethsandaru/laravel-hmvc-generator
==================================

Laravel 5 - HMVC Architecture Generator

0.0.3(6y ago)5261MITPHPPHP ^7.1.3

Since Jun 26Pushed 6y agoCompare

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

READMEChangelog (1)Dependencies (1)Versions (6)Used By (0)

Laravel 5 Package - HMVC Architecture Generator
===============================================

[](#laravel-5-package---hmvc-architecture-generator)

HVMC is a more-strongly design pattern based on MVC (Model-View-Controller). You got many advantages by using this pattern, especially if your project is very big.

Key advantages (M.O.R.E):

- Modularization: Reduction of dependencies between the disparate parts of the application.
- Organization: Having a folder for each of the relevant triads makes for a lighter work load.
- Reusability: By nature of the design it is easy to reuse nearly every piece of code.
- Extendibility: Makes the application more extensible without sacrificing ease of maintenance.

Find out more here: [HVMC - Wikipedia](https://en.wikipedia.org/wiki/Hierarchical_model%E2%80%93view%E2%80%93controller)

Install &amp; Update
--------------------

[](#install--update)

Install using Composer:

```
composer require sethsandaru/laravel-hmvc-generator

```

Update using Composer:

```
composer update sethsandaru/laravel-hmvc-generator

```

How to use?
-----------

[](#how-to-use)

### Notes

[](#notes)

- If you're using Laravel 5.5+, then it's ok, the framework itself will do the ServiceProvider scanning process.
- If you're using Laravel 5.4 and below, please add the `HMVCServiceProvider` into the `providers` in `config/app.php`
    - Full namespace path: `SethPhat\HMVC\HMVCServiceProviderg`

### First Initialize

[](#first-initialize)

For the first time, please run this command:

```
php artisan make:hmvc
```

If you see the successful message, you're done!

### Create a Module

[](#create-a-module)

Use this command to create a new module:

```
php artisan hmvc:create_module
```

A new module will be created inside the `app/Modules` folder.

### Config files

[](#config-files)

To add your own configuration file and use the `config` function, please open `config/hmvc.php`

You will see this:

```
