netesy/yii2-bulksms
Composer 安装命令:
composer require netesy/yii2-bulksms
包简介
A simple class to handle the bulk sms api for Nigerian bulk sms hhtp api connection
关键字:
README 文档
README
A Yii2 extension to handle sending messages for most Nigerian bulksms http api connections
A Yii2 extension to handle sending messages for most Nigerian bulksms http api connections
Installation
The preferred way to install this extension is through composer.
Either run
php composer require netesy/yii2-bulksms
or add
"netesy/yii2-bulksms": "*"
to the require section of your composer.json file.
Supported websites
Usage
Once the extension is installed, simply use it in your code by :
first add to config.php
<?php 'components' => [ 'bulksms' => [ 'class' => 'netesy\bulksms\BulkSms', 'username' => 'xxxxxxxx', 'password' => 'xxxxxxxx', 'sender' => 'sender number', 'url' => 'the api address', ], ] ?>
Once the extension is installed, simply use it in your code by : to send a message
<?php Yii::$app->bulksms->sendMessage([ 'number' => $number, 'message' => 'message', ]); ?>
to send a call
<?php Yii::$app->bulksms->sendCall([ 'number' => $number, 'message' => 'message', ]); ?>
to get your account balance
<?php Yii::$app->bulksms->getBalance(); ?>
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-18