sempico/api-sms-php
最新稳定版本:1.0.4
Composer 安装命令:
composer require sempico/api-sms-php
包简介
Api library to interact with Sempico Solutions Api
README 文档
README
Requirements
- PHP with Curl Extension Support
- Sempico Account
How to use
Install with Composer
Recommended install via composer
composer require sempico/api-sms-php
Usage
use Sempico\Api\Sms; // Send sms $result = Sms::send([ 'token' => 'gbBX8dB7kDvBeo0H-VN2CX0bAXXbyJ', // Token created in Web app, is required 'phone' => 12345678910, // Phone number in international format, is required 'senderID' => 41, // ID of sender from which SMS will be send, is required 'text' => 'Hello world', // Content SMS for sending, is required 'type' => 'sms!', // Type of SMS or HLR or MNP 'lifetime' => 86400, // How many seconds will this SMS live 'beginDate' => '2022-10-01', // Date when SMS should be send 'beginTime' => '15:15:15', // Time when SMS should be send in selected beginDate 'delivery' => 'TRUE' // Allow / disallow get DLR back ]); // Refactore SMS credentials $result = Sms::refactore([ 'token' => 'gbBX8dB7kDvBeo0H-VN2CX0bAXXbyJ', // Token created in Web app, is required 'phone' => 12345678910, // Phone number in international format, is required 'senderID' => 41, // ID of sender from which SMS will be send, is required 'text' => 'Hello world', // Content SMS for sending, is required ]);
License
MIT License
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-23