Download the PHP package mufidjamaluddin/codeigniter4-hmvc without Composer

On this page you can find all versions of the php package mufidjamaluddin/codeigniter4-hmvc. 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 codeigniter4-hmvc

Codeigniter4-HMVC

<ORG_NAME>

This is Hierarchical model–view–controller (HMVC) project starter using CodeIgniter4 framework. By HMVC architecture, I hope we could make scalable web application.

Prerequisites

  1. PHP 7.2 or above
  2. Composer version 1.10 or above
  3. intl PHP extension (for formatting currency, number and date/time, see CodeIgniter4 Docs )
  4. xdebug PHP extension (for testing purpose only, optional)
  5. php_sqlite3 PHP extension (for testing purpose only, very optional)

How to use

  1. Run , to create your project based on this boilerplate.
  2. Configure the app by change the file.
  3. Run for run the app.

Make new module

Tutorial

  1. Update the spark files

  2. Call the command, then input a module, controller, and model name (Automatically configure a routes modules).

  3. Run for run your test cases (optional, see CodeIgniter4 Docs or PHPUnit Docs )

  4. Run in the browser by command

Screenshot Example


Notes

Always run after create or change module, controller, or controller methods directly without php spark module command except if you want to configure module route manually.

Command Prompt

Command module, controller, and model creation

The easiest way to create a controller (required) and a model inside a module. Create a module or a model if it doesn't exist.

Usage: Call the command, then input a module, controller, and model name.

Command route:update parameter

Parameters: '-n' = Set module namespace (default App\Modules) '-i' = Set route with /index path without parameter (true/false, default true) '-m' = Set route one module name to be create/update (app/Modules/YourModuleName) '-f' = Set module folder inside app path (default Modules)

Usage command

Command module:create parameter

Example

First parameter (invoice) is your new module.

PHPUnit

You can run all of your test cases by run

Other Command

You can get all command prompt list by run and composer command in composer.json > scripts.

HMVC Structure

Default Structure

By default, there is the structure of Codeigniter4-HMVC.

Custom Structure

You can structuring your module freely, because CodeIgniter4 use PSR4. If you want to change the structure of Routes.php in Config Module folder or the structure of Module Controllers, you must change app/Config/Routes.php in HMVC Routing section and modify RouteUpdate.php & Module.php in app/Commands folder.

Contribute

You can contribute for extend CodeIgniter4 capabilities or add command prompt for development use by fork this repository. After that, you can make pull request.


All versions of codeigniter4-hmvc with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
codeigniter4/framework Version ^4.2
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 mufidjamaluddin/codeigniter4-hmvc contains the following files

Loading the files please wait ....