first commit

This commit is contained in:
2023-09-11 09:44:39 +08:00
commit fa76d02135
9 changed files with 348 additions and 0 deletions

34
README.md Normal file
View File

@@ -0,0 +1,34 @@
# Jason/Sms 短信发送扩展
## 安装
```
$ composer require jasonc/sms
$ php artisan vendor:publish --tag='sms'
$ php artisan migrate
```
## 短信发送
```
\Sms::send($mobile, $channel = 'DEFAULT');
```
## 短信验证
```
\Sms::check($mobile, $code, $channel = 'DEFAULT');
```
扩展验证规则
```
sms_check:MOBILEFIELD,CHANNEL 短信验证码验证
MOBILEFIELD手机号码字段名称
CHANNEL验证通道
```