Download the PHP package sethsandaru/laravel-hmvc-sample without Composer

On this page you can find all versions of the php package sethsandaru/laravel-hmvc-sample. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-hmvc-sample

Laravel HMVC Structure - Sample Project

A sample project, building and using HMVC structure for Laravel 5.7+, 6, 7, 8.

What is HMVC?

You can find out here: HMVC - WIKI

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

Other advantages

Laravel HMVC Structure - this project

Module Structure

So you can see, a Module is just a small Laravel Application. You don't have to create a full structure to make it work.

The most important part is: ServiceProvider. Without that we can't boot up the Module.

How to create a new module?

  1. Create your module folder inside app/Modules
  2. Inside your module folder, create folder that you need like the structure above (ServiceProvider, Views,...)
  3. Create a ServiceProvider and register it in configs/app.php
  4. Test your module

How to access View/Language/Config?

Module folder name is the alias name to let us load views, language text,...
Example: I have Home module. Alias: home

Load view

We need to insert module alias in the beginning like this:

Get language (translation) text

Get Config Value

Just like normal config, you can get your config via your alias like this:

Migrations

How it works?

When you run php artisan migrate, it will run like this:

Create migration

Just create migration file (Laravel format) in <ModulePath>/Migrations.

Note:

Console Command registration

Note: Older Laravel versions might not have this opportunity. The current project is using Laravel 5.7

Final

If you got any problems or any questions, feel free to ask me.

Copyright © 2018-2021 by Seth Phat.


All versions of laravel-hmvc-sample with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
fideloper/proxy Version ^4.0
laravel/framework Version 5.7.*
laravel/tinker Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sethsandaru/laravel-hmvc-sample contains the following files

Loading the files please wait ....