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 the fast and secure MVC PHP framework.
License
This framework is Open Source According to MIT license
Table Of Contents
- Installation
- Setup
- Using
- Route
- Middleware
- Model
- Controller
- View
- Validation
Installation
Setup
First, You must create .env file under your project folder. And then you must declare your real database name, database username and password in this .env file.
You can see how to set the data in .env.example under your project folder.
In your .env file
You can run the app from public path
Using
Route
You can add your route in 'web' function of "routes/web.php".
If you want to add another route file, create new route file under "routes" folder. And then you must add new function like 'web.php'.
Then you must use your new route file in 'app/Kernel.php';
Above code is highlighting the things in adding new route file.
You can use this docuementation for the route functions in detail.
Middleware
You can create middleware for routes in command line.
The Middleware Class will be created under 'app/Middleware' folder.
You can use this documentation for the middleware functions in detail.
Model
You can add another database connection in "app/Kernel.php" as shown as this documention .
You can create model in command line.
The Model Class will be created under 'app/Models' folder.
Example Model
You can use this documentation to use Model in detail
Controller
You can create Controller in command line.
The Controller Class will be created under 'app/Controllers' folder.
For more detail, use this documentation .
View
You can create View Component Class in command line.
The View Component Class will be created under 'app/Components' folder
You can return view in the route or controller's function
Without Controller
With Controller
You must create view PHP file under 'resources/views' folder.
For more detail, use this documentation.
Validation
You can validate the input data in your controller class
You can call your validation error messages in your view php file
For more detail, use this documentation.
All versions of ichi with dependencies
jijihohococo/ichi-template Version ^2.2
jijihohococo/ichi-orm Version ^2.3
jijihohococo/php-env Version ^1.3
jijihohococo/ichi-validation Version ^1.4