lkk / yii2-smser
Yii2 SMS extension
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-12-30 14:44:54 UTC
README
Yii2 SMS extension (短信扩展)
Installation
The preferred way to install this extension is through composer. Check the composer.json for this extension's requirements and dependencies.
To install, either run
$ php composer.phar require lkk/yii2-smser "*"
or add
"lkk/yii2-smser": "*"
to the require
section of your composer.json
file.
Usage
return [ 'components' => [ 'smser' => [ 'class' => 'lkk\smser\HuyiSmser', 'username' => 'username', 'password' => 'password', ] ], ];
OR
return [ 'components' => [ 'smser' => [ 'class' => 'lkk\smser\HuyiSmser', 'apikey' => 'wcJRH2mh7BbfIsaWLD4QCbllCaVpZNIp', // 请替换成您的apikey ] ], ];
Yii::$app->smser->send('13000000000', '短信内容');
License
yii2-smser is released under the BSD 3-Clause License. See the bundled LICENSE
for details.