alexeevdv/yii2-sms
最新稳定版本:1.0.1
Composer 安装命令:
composer require alexeevdv/yii2-sms
包简介
This extension allows SMS sending via different SMS providers
README 文档
README
This extension allows SMS sending via different SMS providers
Installation:
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist alexeevdv/yii2-sms "~1.0"
or add
"alexeevdv/yii2-sms": "~1.0"
to the require section of your composer.json.
Configuration:
use alexeevdv\sms\provider\SmsRuProvider;
use alexeevdv\sms\Sms;
//...
'components' => [
'sms' => [
'class' => Sms::class,
'provider' => [
'class' => SmsRuProvider::class,
'apiId' => '123456789',
],
],
],
//...
Usage:
$result = Yii::$app->sms->send('1234567890', 'Hi there!');
Supported providers:
统计信息
- 总下载量: 11.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-12-05