alexeevdv/yii2-sms-ru
Composer 安装命令:
composer require alexeevdv/yii2-sms-ru
包简介
Yii2 wrapper for sms.ru API
README 文档
README
Yii2 wrapper for sms.ru API
Installation
The preferred way to install this extension is through composer.
Either run
$ php composer.phar require alexeevdv/yii2-sms-ru "dev-master"
or add
"alexeevdv/yii2-sms-ru": "dev-master"
to the require section of your composer.json file.
Configuration
Through application component
"components" => [ //... "sms" => [ "class" => "alexeevdv\sms\ru\Client", "api_id" => "YOUR_API_ID", ], //... ],
Usage
use alexeevdv\sms\ru\Sms; $response = \Yii::$app->sms->send(new Sms([ "to" => "+9530000000", "text" => "Hello my friend!", ])); echo $response->code;
统计信息
- 总下载量: 22.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-09-29