j2zl/easy-sms

聚美-云上贵州短信

1.0.9 2022-12-20 05:26 UTC

This package is auto-updated.

Last update: 2024-05-20 08:24:41 UTC


README

安装

composer require j2zl/easy-sms

发布配置文件

php artisan vendor:publish --provider="EasySms\Providers\ServiceProvider"

短信SDK

已完成

  • send 发送短信
  • sendRawContent 发送自定义短信

发送短信

$sms = app('EasySms');
list($success, $response) = $sms->send('183****014', '无需填入, 兼容jumdata语法', ['5678']);
list($success, $response) = $sms->sendRawContent('183****014', 'content');

if ($success == false) {
    // 短信发送失败
}