https://github.com/ogenes/phone-check
固话和手机号自动解析并验证
https://github.com/ogenes/phone-check
Last synced: about 1 year ago
JSON representation
固话和手机号自动解析并验证
- Host: GitHub
- URL: https://github.com/ogenes/phone-check
- Owner: ogenes
- License: mit
- Created: 2021-06-30T11:49:30.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-01T02:54:35.000Z (almost 5 years ago)
- Last Synced: 2025-02-03T21:59:03.140Z (over 1 year ago)
- Language: PHP
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# phone-check
固话和手机号自动解析并验证
install
```shell script
composer require ogenes/phone-check
```
demo
```shell script
use Ogenes\PhoneCheck\Client;
try
{
$tel = "(0376) 803 9551;13478946254";
$ret = Client::analysis($tel);
} catch (InvalidArgumentException $e)
{
$ret = $e->getMessage();
}
print_r($ret);
```