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
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-27