定制 smsguru/client 二次开发

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

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

smsguru/client

最新稳定版本:3.0.2

Composer 安装命令:

composer require smsguru/client

包简介

PHP Client for using SMSGuru's API

README 文档

README

PHP Client for send SMS using SMSGuru's API

In previous version, user credentials from our portal is required for each API triggered, this posts security threat by exposing account details in URL. And it shares the same credentials from API access and Web Portal access, this way, if user trigger forget password and updated their password, API will fail immediately.

Installation:

composer require sms-guru/client

To send sms:

use smsguru\client;
require_once "./vendor/autoload.php";

// Please whitelist your IP and enable API in console.smsguru.co before you call this 

$smsClient = new client('YOUR_APP_KEY', 'YOUR_APP_SECRET');
$response = $smsClient->send([
				'from'	=> '68068',
				'to'	=> '60123240066',
				'text'	=> 'Hi from Package 2.0'
			]);

To check account balance:

use smsguru\client;
require_once "./vendor/autoload.php";

// Please whitelist your IP and enable API in console.smsguru.co before you call this 

$smsClient = new client('YOUR_APP_KEY', 'YOUR_APP_SECRET');
$response = $smsClient->balance([
				'country'	=> 'SGP'
			]);

To find out more info about our service, please visit SMSGuru official site.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-06