Download the PHP package okfsoft/ci4-hmvc without Composer

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


mscodev

CODEIGNITER 4 HMVC STARTER


License Latest Stable Version Latest Unstable Version Total Downloads

≡ About ci4-hmvc

This is a project archive that we use to make it easier for us to build web applications based on the CodeIgniter4 framework. Hopefully it can be useful.

CodeIgniter is a php based framework and works on the MVC (Model-View-Controller) pattern. Can also use Hierarchical Model View Controller (HMVC). HMVC stands for Hierarchical Model View Controller. This is the latest version of the HMVC pattern used for web applications. Provide solutions to help you address application scalability such as easy module updates.



≡ Table of contents



≡ Requirements



≡ Feature list

This is a list of some features or functionality that you can use.



≡ Preparation & Installation

To get ready to install packages, you have to install codeigniter 4 appstarter with composer, or you can follow the user guide to install using composer.

Now the next step is to add the rule in composer.json in your project root, and add the following rule to make it work after the installation is complete, or you can skip this preparation and add it manually in step number 03.


01. Install library via composer:


02. Distribute HMVC

Now you can distribute the library can be done via spark:

This will copy and distribute the sample hmvc structure folder in your project root parallel to the codeigniter4 app folder.


03. Modify Autoload.php

( Ignore rule number 03 if you have added autoload in composer.json ).\ Next you need to modify psr-4 settings on Autoload.php file on app/Config/Autoload.php and add below rules



≡ Use of HMVC

You can try running php spark serve to run codeigniter development and visiting http://localhost:8080/starter it will load hmvc modules/application/Starter which will show if there are no problems during installation.

When you http://localhost:8080/starter/blade will load hmvc starter using BladeOne Template Engine


01. Router Settings

You can make Routes.php settings for each new module created in the modules/application/{Module_name}/Config.php directory, using this code sample:

You can use BladeOne Rendering which comes in the package. or use with the help of Class Helper


≡ Helpers

Parameter Information
return renderView('home', $data); HMVC Display Rendering using Default
return renderBlade('home', $data); HMVC Display Rendering using BladeOne




More info useful link

Credit


All versions of ci4-hmvc with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.1
codeigniter4/framework Version ^4.2
eftec/bladeone Version ^4.5
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 okfsoft/ci4-hmvc contains the following files

Loading the files please wait ....