szwsuny / asserthelper
oh~~
dev-master
2020-09-25 00:00 UTC
Requires
- php: >=7.0.0
This package is auto-updated.
Last update: 2025-04-29 01:10:19 UTC
README
使用方式
1. AssertHelper::valudate($value)->empty('如果为空的异常信息')->throws();
//throw Exception
2. $result = AssertHelper::validate('1332233122x')->empty('如果为空的异常信息')->mobile('手机号格式不正确')->bool($msg);
// $result = false // $msg = '手机号格式不正确'