Download the PHP package jijihohococo/ichi without Composer
On this page you can find all versions of the php package jijihohococo/ichi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jijihohococo/ichi
More information about jijihohococo/ichi
Files in jijihohococo/ichi
Informations about the package ichi
ICHI PHP FRAMEWORK
ICHI PHP FRAMEWORK is a fast and secure MVC PHP framework.
License
This framework is open source under the MIT license.
Table of Contents
- ICHI PHP FRAMEWORK
- License
- Table of Contents
- Installation
- Setup
- Using
- Route
- Middleware
- Model
- Controller
- View
- Validation
Installation
Setup
First, you must create a .env file in your project folder. Then declare your actual database name, database username, and password in that file.
You can see the required format in .env.example under your project folder.
In your .env file
You can run the app from the public path:
Using
Route
You can add routes in the web function of routes/web.php.
If you want to add another route file, create a new file under the routes folder.
Then add a new function similar to web.php.
Then include your new route file in app/Kernel.php:
The code above highlights what is needed to add a new route file.
You can use this documentation for route functions in detail.
Middleware
You can create middleware for routes from the command line.
The middleware class will be created under the app/Middleware folder.
You can use this documentation for middleware functions in detail.
Model
You can add another database connection in app/Kernel.php, as shown in this documentation.
You can create a model from the command line.
The model class will be created under the app/Models folder.
Example model
You can use this documentation for model usage details.
Controller
You can create a controller from the command line.
The controller class will be created under the app/Controllers folder.
For more details, use this documentation.
View
You can create a view component class from the command line.
The view component class will be created under the app/Components folder.
You can return a view in a route callback or in a controller method.
Without controller
With controller
You must create view PHP files under the resources/views folder.
For more details, use this documentation.
Validation
You can validate input data in your controller class.
You can display validation error messages in your view PHP file:
For more details, use this documentation.
All versions of ichi with dependencies
jijihohococo/ichi-template Version ^2.4
jijihohococo/ichi-orm Version ^3.2
jijihohococo/php-env Version ^1.3
jijihohococo/ichi-validation Version ^1.7