PHP项目开发框架,基于composer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
428 B

<?php
namespace Wiggins\MyProject\Example;
require '../vendor/autoload.php';
use Wiggins\MyProject\UserInput;
$obj=new UserInput(['scenario'=>'login']);
$obj->name='kuangweijian';
// $obj->email="12345678@qq.com";
$obj->password="123456546";
if($obj->validate()){
echo "login succ".PHP_EOL;
}else{
echo "login failed".PHP_EOL;
print_r($obj->getErrors());
}
?>