【文件属性】:
文件名称:phone:验证电话号码格式
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-28 12:03:59
rules php laravel validation phone
电话
验证电话号码格式。
安装
composer require laravel-validation-rules/phone
用法
use LVR \ Phone \ Phone ;
use LVR \ Phone \ E123 ;
use LVR \ Phone \ E164 ;
use LVR \ Phone \ NANP ;
use LVR \ Phone \ Digits ;
// Test any phone number
$ request -> validate ([ 'test' => '15556667777' ], [ 'test' => new Phone ]); // Pass!
$ request -> validate ([ 'test' => '+15556667777' ], [ 'test' => new Phone ]); // Pass!
$ re
【文件预览】:
phone-master
----src()
--------NANP.php(548B)
--------Phone.php(3KB)
--------Digits.php(556B)
--------E123.php(503B)
--------E164.php(544B)
----LICENSE(11KB)
----README.md(2KB)
----CHANGELOG.md(252B)
----composer.json(1KB)