Download the PHP package sethsandaru/laravel-hmvc-generator without Composer
On this page you can find all versions of the php package sethsandaru/laravel-hmvc-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sethsandaru/laravel-hmvc-generator
More information about sethsandaru/laravel-hmvc-generator
Files in sethsandaru/laravel-hmvc-generator
Package laravel-hmvc-generator
Short Description Laravel 5 - HMVC Architecture Generator
License MIT
Informations about the package laravel-hmvc-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
Install & Update
Install using Composer:
Update using Composer:
How to use?
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 theproviders
inconfig/app.php
- Full namespace path:
SethPhat\HMVC\HMVCServiceProviderg
- Full namespace path:
First Initialize
For the first time, please run this command:
If you see the successful message, you're done!
Create a Module
Use this command to create a new module:
A new module will be created inside the app/Modules
folder.
Config files
To add your own configuration file and use the config
function, please open config/hmvc.php
You will see this:
Following the instruction above. You must add a right path to your config file, no full path, just the path in app
folder.
Example:
I will get the config out like this:
Supporting the project
If you really like this project & want to contribute a little for the development. You can buy me a coffee. Thank you very much for your supporting ♥.
Copyright © 2018 by Seth Phat aka Phat Tran Minh!