evans-wanguba/onfonmedia-sms
最新稳定版本:v1.0.0
Composer 安装命令:
composer require evans-wanguba/onfonmedia-sms
包简介
This is a PHP package for Onfon Media Bulk SMS API integration
README 文档
README
This is a PHP package for Onfon Media Bulk SMS API integration. For more information, check out Onfon Media Bulk SMS API Guide.
Installation
Pull in the package through Composer.
composer require evans-wanguba/onfonmedia-sms
Create the following variables in your .env file. Find Sender ID under Dashboard > Sender IDs > All Sender IDs Find API Key under Dashboard > Settings > API SETTINGS tab Find Client ID under Dashboard > Settings > API SETTINGS tab
ONFONMEDIA_SMS_SENDER_ID=SenderID ONFONMEDIA_SMS_API_KEY=APIKey ONFONMEDIA_SMS_CLIENT_ID=ClientID
Supported API Services
- Bulk SMS
Usage
To send bulk SMS request is simple. Just initiate the BulkSMS and post the transaction:
use EvansWanguba\OnfonmediaSMS\BulkSMS; require "vendor/autoload.php"; /* * Send Bulk SMS */ $message = "This is just a notification"; $bulkSms = [ [ "Number" => "254700000000", "Text" => $message ], [ "Number" => "254700000001", "Text" => $message ] ]; $onfonmediaSms->sendBulkSms($bulkSms);
Support
Email me at ewanguba@gmail.com
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-10-15