expertsystemsau/transmitsms-php-client
最新稳定版本:v1.4.0
Composer 安装命令:
composer require expertsystemsau/transmitsms-php-client
包简介
Framework-agnostic PHP client for the TransmitSMS API
README 文档
README
A framework-agnostic PHP client for the TransmitSMS API.
Installation
composer require expertsystemsau/transmitsms-php-client
Usage
use ExpertSystems\TransmitSms\TransmitSmsClient; $client = new TransmitSmsClient('your-api-key', 'your-api-secret'); // Send an SMS $response = $client->sendSms('+61400000000', 'Hello from TransmitSMS!'); // Send to multiple recipients $response = $client->sendSms(['+61400000000', '+61400000001'], 'Bulk message'); // Send with options $response = $client->sendSms('+61400000000', 'Scheduled message', [ 'from' => 'MySenderID', 'send_at' => '2024-12-25 09:00:00', ]); // Check message status $status = $client->getMessageStatus('message-id'); // Get account balance $balance = $client->getBalance(); // Get SMS replies $replies = $client->getSmsReplies(); // Get delivery reports $reports = $client->getDeliveryReports(); // Manage contacts $lists = $client->getLists(); $client->addContact(123, '+61400000000', ['first_name' => 'John']);
Laravel Integration
For Laravel projects, use expertsystemsau/transmitsms-laravel-client which provides a service provider, facade, and notification channel.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-09