j2zl/easy-sms

聚美-云上贵州短信

Maintainers

Details

github.com/J2zl/easysms

Source

Issues

Installs: 32

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/j2zl/easy-sms

1.0.9 2022-12-20 05:26 UTC

This package is auto-updated.

Last update: 2025-10-20 11:42:11 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) {
    // 短信发送失败
}