aqlx86/isms-php
Composer 安装命令:
composer require aqlx86/isms-php
包简介
PHP library for ISMS SMS API
README 文档
README
iSMS PHP Client
Please check isms site for the list of response error codes and description. https://www.isms.com.my/response_result.php
Current features
- Send SMS
- Get Remaining balance
Setup
$ composer.phar install
Sending of SMS example usage
require './vendor/autoload.php';
use ISMS\Recipient;
use ISMS\Message;
use ISMS\SMS;
$recipient = new Recipient('9999999');
$message = new Message($recipient, 'message to send');
$sms = new SMS('username', 'password', $message);
try
{
$sms->send();
}
catch (\Exception $e)
{
var_dump($e->getMessage(), $e->getCode());
}
Get remaining SMS balance
require './vendor/autoload.php';
use ISMS\Balance;
$balance = new Balance('username', 'password');
try
{
echo $balance->get();
}
catch (\Exception $e)
{
var_dump($e->getMessage(), $e->getCode());
}
统计信息
- 总下载量: 756
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-03-07