code2magic/yii2-smsgateway
最新稳定版本:0.2.0
Composer 安装命令:
composer require code2magic/yii2-smsgateway
包简介
SMS gateway
README 文档
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require code2magic/yii2-smsgateway --prefer-dist
or add
"code2magic/yii2-smsgateway": "*"
to the require section of your composer.json file.
Configuration
This extension is supposed to be used with composer-config-plugin.
Else look config/common.php for cofiguration example.
Usage
Use with DI
$sms_gateway = \Yii::createObject(SmsGateway::class);
$ms_gateway->send($phone, $text, [])
or as component
// config
'components' => [
// ...
'sms_gateway' => \code2magic\smsGateway\SmsGateway::class,
// ...
],
// usage
\Yii::$app->sms_gateway->send($phone, $text, [])
统计信息
- 总下载量: 608
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-12-04