Skip to content

dishcheng/yunxinsms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

网易云信短信sdk

For laravel >= 5.5

官方文档

composer require dishcheng/yunxinsms:~1.0

php artisan vendor:publish --provider="DishCheng\YunXinSms\YunXinSmsProvider" --tag=yunxinsms

Usage:

use DishCheng\YunXinSms\YunXinSms;

验证码类短信

$params = ['mobile' => 'xxxxxxx', 'templateid' => 'xxxxxxx', 'authCode' => '1111'];
var_dump(YunXinSms::code_post($params));

通知类短信

$params = ['mobiles' => json_encode([xxxxxxx]), 'templateid' => 'xxxxxxx', 'params' => json_encode([xxxx, xxxx, xxxx])];
$response = YunXinSms::notice_post($params);
var_dump($response);

About

网易云短信

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages