定制 sabanovin/php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-04-26