szwsuny / asserthelper
oh~~
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/szwsuny/asserthelper
Requires
- php: >=7.0.0
This package is auto-updated.
Last update: 2025-11-29 02:57:46 UTC
README
使用方式
1. AssertHelper::valudate($value)->empty('如果为空的异常信息')->throws();
//throw Exception
2. $result = AssertHelper::validate('1332233122x')->empty('如果为空的异常信息')->mobile('手机号格式不正确')->bool($msg);
// $result = false // $msg = '手机号格式不正确'