dev-master
9999999-dev https://github.com/lonelythinker/yii2-smsYii2 SMS extension
BSD-3-Clause BSD 3-Clause
The Requires
plugin extension yii2 sms lonelythinker
Yii2 SMS extension
Yii2 SMS extension (基于yii2的短信扩展), (*1)
支持接口:, (*2)
执行, (*3)
$ php composer.phar require lonelythinker/yii2-sms "*"
或者添加, (*4)
"lonelythinker/yii2-sms": "*"
到 composer.json
文件的require
块。, (*5)
return [ 'components' => [ '' => [ // 创蓝 'class' => 'lonelythiker\\yii2\\sms\\Chuanglan', 'username' => 'username', 'password' => 'password', 'useFileTransport' => false ] ], ];
OR, (*6)
return [ 'components' => [ '' => [ // 短信宝 'class' => 'lonelythiker\\yii2\\sms\\Smsbao', 'username' => 'username', 'password' => 'password', 'useFileTransport' => false ] ], ];
OR, (*7)
return [ 'components' => [ '' => [ // 中国云信 'class' => 'lonelythiker\\yii2\\sms\\Yunxin', 'username' => 'username', 'password' => 'password', 'useFileTransport' => false ] ], ];
OR, (*8)
return [ 'components' => [ '' => [ // 云片网 'class' => 'lonelythiker\\yii2\\sms\\Yunpian', 'apikey' => 'apikey', 'useFileTransport' => false ] ], ];
Yii::$app->->send('15000000000', '短信内容');
// 发送模板短信 Yii::$app->->sendByTemplate('15000000000', ['123456'], 1);
yii2-sms is released under the Apache-2.0 License. See the bundled LICENSE
for details., (*9)
Yii2 SMS extension
BSD-3-Clause BSD 3-Clause
plugin extension yii2 sms lonelythinker