dev-master
9999999-dev https://github.com/lkk/yii2-smserYii2 SMS extension
MIT
The Requires
by caige
plugin extension yii2 sms smser
Yii2 SMS extension
Yii2 SMS extension (短信扩展), (*1)
The preferred way to install this extension is through composer. Check the composer.json for this extension's requirements and dependencies., (*2)
To install, either run, (*3)
$ php composer.phar require lkk/yii2-smser "*"
or add, (*4)
"lkk/yii2-smser": "*"
to the require
section of your composer.json
file., (*5)
return [ 'components' => [ 'smser' => [ 'class' => 'lkk\smser\HuyiSmser', 'username' => 'username', 'password' => 'password', ] ], ];
OR, (*6)
return [ 'components' => [ 'smser' => [ 'class' => 'lkk\smser\HuyiSmser', 'apikey' => 'wcJRH2mh7BbfIsaWLD4QCbllCaVpZNIp', // 请替换成您的apikey ] ], ];
Yii::$app->smser->send('13000000000', '短信内容');
yii2-smser is released under the BSD 3-Clause License. See the bundled LICENSE
for details., (*7)
Yii2 SMS extension
MIT
plugin extension yii2 sms smser