smsbox/php-sdk
最新稳定版本:v1.1.0
Composer 安装命令:
composer require smsbox/php-sdk
包简介
Send SMS message and more from your application with the SMSBOX PHP SDK
关键字:
README 文档
README
The SMSBOX PHP SDK provides a simple and efficient way to send SMS messages directly from your PHP applications.
Whether you are sending alerts, notifications, or marketing messages, this SDK makes the process fast and easy to integrate.
For more information, visit the official website: SMSBOX
⚠️ Requirements
- PHP 7.4+ (compatible with PHP 8.x)
- Composer
📖 Documentation
For detailed information about the SMSBOX Sending SMS API parameters, see the official documentation: SMS API.
✉️ Features
- Send SMS messages quickly and reliably, customizable sender ID, scheduling, etc.
⚙️ Installation
Install via Composer:
composer require smsbox/php-sdk
⚡ Quick Start
<?php require __DIR__ . '/vendor/autoload.php'; use Smsbox\SmsboxClient; use Smsbox\Options\SMS\SmsOptions; use Smsbox\Messages\SmsMessage; use Smsbox\Enum\SMS\Strategy; try { $client = new SmsboxClient(SMSBOX_API_KEY); $message = new SmsMessage( ['+336XXXXXXXX'], 'Hello! This is a test message.' ); $options = (new SmsOptions()); ->strategy(Strategy::MARKETING); $message->options($options); $response = $client->sendSms($message); echo 'Message sent successfully. Reference ID: ' . $response['refId'] . PHP_EOL; } catch (GuzzleException|SmsboxException $e) { echo 'Error sending OTP: ' . $e->getMessage() . PHP_EOL . 'Code: ' . $e->getCode(); }
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-06
