kriss / yii2-bd-sms
Yii2 必答短信的组件
Installs: 100
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.13
- yiisoft/yii2-httpclient: ^2.0
This package is auto-updated.
Last update: 2024-12-10 14:42:29 UTC
README
Yii2 必答短信的组件,仅适用于
必答短信
Installation
php composer.phar require --prefer-dist kriss/yii2-bd-sms -vvv
Usage
- 定义一个 SmsSender 继承 AbstractSmsSender
see SmsSender.php
- 配置 config
use kriss\bd\sms\Sms; $config = [ 'components' => [ Sms::COMPONENT_NAME => [ 'class' => Sms::className(), 'enable' => true, 'account' => 'xxxx', 'password' => 'xxxxx', 'logCategory' => 'bd-sms', ] ] ]
- Controller