云通讯 / sms
云通讯 SMS PHP SDK for Lumen
该软件包的规范仓库似乎已消失,因此该软件包已被冻结。
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])