PHP code example of jijihohococo / ichi

1. Go to this page and download the library: Download jijihohococo/ichi library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jijihohococo / ichi example snippets



composer create-project jijihohococo/ichi:dev-master your_project



function new_routes($route){

}



namespace App;

use JiJiHoHoCoCo\IchiRoute\Router\Route;

e;
		new_routes($route);
		$route->run();
	}



}



php ichi make:middleware NewMiddleware



php ichi make:model NewModel



namespace App\Models;

use JiJiHoHoCoCo\IchiORM\Database\Model;

class NewModel extends Model{

	public $id , $name , $created_at , $updated_at , $deleted_at ;

}


php ichi make:controller NewController



php ichi make:component ViewComponent



$route->get('/welcome',function(){
	return view('welcome.php');
});



$route->get('/welcome','HomeController@welcome');



namespace App\Controllers;


class HomeController{


	public function welcome(){
		return view('welcome.php');
	}


}


namespace App\Controllers;


use JiJiHoHoCoCo\IchiValidation\Validator;
class TestController{


	public function test(){

		$validator=new Validator();
		if(!$validator->validate($_REQUEST,[
			'name' => '
txt

your_project/public > php -S localhost:8000



 if(isset($errors['name'])):