sabanovin/php
最新稳定版本:v1.0.3
Composer 安装命令:
composer require sabanovin/php
包简介
A PHP wrapper for SabaNovin's REST API
关键字:
README 文档
README
Installation
Use in these ways :
composer require sabanovin/php
Usage
Send Simple SMS by SabaNovin API:
require __DIR__ . '/vendor/autoload.php'; try{ $api = new \SabaNovin\SabaNovinApi( "API-Key" ); $gateway = "100020500"; $text = "متن تست"; $to = array("09370000000", "09120000000"); $result = $api->Send($gateway, $to, $text); if($result->entries){ foreach($result->entries as $entry) { echo "reference_id = $entry->reference_id"; echo "status = $entry->status"; echo "mobile = $entry->mobile"; echo "datetime = $entry->datetime"; } } } catch(\SabaNovin\Exceptions\ApiException $e){ echo $e->errorMessage(); }
统计信息
- 总下载量: 858
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-26