Skip to content

新版阿里大于短信接口的laravel5.5组件

Notifications You must be signed in to change notification settings

tongv/AlidySms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AlidySms

新版阿里大于短信接口的Laravel组件 for Laravel 5.5+

https://dysms.console.aliyun.com/dysms.htm

系统要求

php >= 7.0+

laravel >= 5.5+

安装

composer require tongv/aliyun-dysms

设置配置文件

php artisan vendor:publish --provider="LaraMall\AlidySms\AlidySmsServiceProvider"

修改 config/sms.php 中的阿里大于短信相关参数

  	//id
	'ACCESS_KEY_ID'=>'',
	//秘钥
	'ACCESS_KEY_SECRET'=>'',
	//config 每个操作对应的签名和模版编号
    'CONFIG'=>[
        'register'=>['签名','SMS_115928888'],
    ],

使用

use Sms;

//短信发送成功 下面函数返回 true 反之 false
Sms::sned('13800000000','register',['code'=>'123456']);

About

新版阿里大于短信接口的laravel5.5组件

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%