huid / sms
a simple package for send sms
1.0
2018-03-21 03:55 UTC
Requires
- php: >=5.6
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- mockery/mockery: 1.0.x-dev
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2025-03-05 06:25:44 UTC
README
simpleSms - a package for send sms 
模仿overtrue/easy-sms而做的一款极简版
安装
composer require huid/sms -vvv
环境需求
- PHP >= 5.6
使用
// 使用模版方式 $message1 = new Message([ 'template' => '{:date} is the good day', 'data' => [ '{:date}' => date('Y-m-d') ] ]) // 直接发送内容 $message => new Message([ 'content' => 'this is a test message', ]); $config = [ 'gateway' => [ 'qcloud' => [ 'sdk_app_id' => 'xxxx', 'app_key' => 'xxxx', 'type' => 0 ], ], ]; $sms = new Sms($config); $sms->send(13800138000, $message1); $sms->send(13800138000, $message2);
License
MIT
如有问题,请联系本人zhang.huid@qq.com删除代码