yuntongxun / sms
YunTongXun SMS PHP SDK for Lumen
This package's canonical repository appears to be gone and the package has been frozen as a result.
v1.0.4
2017-02-15 03:23 UTC
Requires
- php: >=5.6.4
- laravel/lumen-framework: 5.3.*
Requires (Dev)
- fzaninotto/faker: ~1.4
- mockery/mockery: ~0.9
- phpunit/phpunit: ~5.0
This package is not auto-updated.
Last update: 2019-03-17 11:42:21 UTC
README
云通讯平台lumen PHPSDK lumen 5.3.* 安装步骤
1、命令行运行 composer require yuntongxun/sms
2、在 bootstrap/app.php 中添加如下代码: ` $app->withFacades(true,[
'\Yuntongxun\Facades\YuntongxunSms'=>'YuntongxunSms'
]);
$app->register(\Yuntongxun\Providers\YuntongxunSmsServiceProvider::class);
$app->configure('yuntongxunsms'); `
3、复制vendor/yuntongxun/sms/config/yuntongxunsms.php到项目config文件夹中 并设置配置信息。
使用SDK发送模版短信
使用
发送手机短信
YuntongxunSms::templateSMS('9635', ['param1','param2'], [138xxxxxxxx,156xxxxxxxx])