yii-dream-team/smsru 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

yii-dream-team/smsru

最新稳定版本:3.2.0

Composer 安装命令:

composer require yii-dream-team/smsru

包简介

PHP class for working with SMS.ru api by Yii Dream Team

README 文档

README

PHP class for working with sms.ru api by Yii Dream Team. Improved and refactored version of the sms_ru class by Aleksandr Zelenin.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yii-dream-team/smsru "*"

or add

"yii-dream-team/smsru": "*"

to the require section of your composer.json.

Usage

Authorization:

$api = new \yiidreamteam\smsru\Api($apiId);

Sending text message:

$api->send('79112223344', 'Text message');
$api->send('79112223344,79115556677,79118889900', 'Text message');
$api->send('79112223344', 'Text message', 'Sender', time(), $transliteration = false, $test = true);

Sending multiple texts:

$messages = [
    ['79112223344', 'Text message'],
    ['79115556677', 'Text message #2']
];
$api->sendMultiple($messages, 'Sender', time(), $transliteration = false, $test = true);

Message status:

$api->status('SMS id');

Message cost:

$api->cost('79112223344', 'Text message');

Balance:

$api->balance();

Daily limit:

$api->limit();

Senders:

$api->senders();

Adding number to the stop list:

$api->stopListAdd('79112223344', 'Some note');

Removing number from the stop list

$api->stopListDel('79112223344');

Obtaining the stop list:

$api->stopListGet();

Licence

MIT

Links

统计信息

  • 总下载量: 11.11k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 53
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固