PHP code example of yuxiaobo / think-fast-validate

1. Go to this page and download the library: Download yuxiaobo/think-fast-validate 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/ */

    

yuxiaobo / think-fast-validate example snippets


// 登录接口操作
public function login() {
    try {

        $data = (new UserValidate())->post()->goCheck('login');

    } catch (\think\ValidateException $e) {

        // TODO 验证失败逻辑

    }
}