j2zl / easy-sms
聚美-云上贵州短信
1.0.9
2022-12-20 05:26 UTC
Requires
- guzzlehttp/guzzle: ^7.2
Requires (Dev)
- phpunit/phpunit: 9.5.x-dev
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) { // 短信发送失败 }