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/ */
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'])):
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.