定制 myomyintaung512/smspoh 二次开发

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

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

myomyintaung512/smspoh

最新稳定版本:v1.0.1

Composer 安装命令:

composer require myomyintaung512/smspoh

包简介

A PHP library for interacting with the SMSPoH RESTful SMS API

README 文档

README

This is a PHP library to interact with the SMSPoH V3 API.

Installation

Install using Composer:

composer require myomyintaung512/smspoh

Usage

require 'vendor/autoload.php';

use myomyintaung512\smspoh\SmsPohApi;

$apiKey = 'your_api_key';
$apiSecret = 'your_api_secret';

$api = new SmsPohApi($apiKey, $apiSecret);

// Send an SMS
$response = $api->sendSms('09xxxxxxxxx', 'Hello World', 'YourSenderID', [
    'clientReference' => 'abcde12345',
    'test' => true,
]);
print_r($response);

// Get balance
$response = $api->getBalance();
print_r($response);

// Get messages
$response = $api->getMessages(['limit' => 10]);
print_r($response);

Testing

Run tests with PHPUnit:

vendor/bin/phpunit tests

License

This library is licensed under the MIT License.

统计信息

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

GitHub 信息

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

其他信息

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