itechpk/brandedsms
Composer 安装命令:
composer require itechpk/brandedsms
包简介
Public API for sending SMS via BrandedSMS.Pk Service.
README 文档
README
Public API for sending SMS via BrandedSMS.Pk Service.
Installation
composer require itechpk/brandedsms
PHP Code
require_once("./vendor/autoload.php"); use Itechpk\Brandedsms\BrandedSms; //Configuration $userId = "USER_ID"; $key = "SECRET_KEY"; $mask = "MASK"; //Sms Data $mobileNo = "92333xxxxxxx"; $msg = "Your message here."; //creating object $sms = new BrandedSms(); //setting configuration $sms->config($userId , $key , $mask); //sending sms $sent = $sms->send($mobileNo , $msg); if($sent) { echo "Sms send."; } else { //$lastCode = null; //$lastReply = null; //$lastId = null; //$lastSts = false; echo "Sms failed to send."; }
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-16