jagdish-j-p/smpp-php
最新稳定版本:v1.0.0
Composer 安装命令:
composer require jagdish-j-p/smpp-php
包简介
PHP Implementation of SMPP protocol to send sms.
README 文档
README
PHP Implementation for sending SMS through SMPP Protocol.
Become a sponsor
Your support allows me to keep this package free, up-to-date and maintainable. Alternatively, you can spread the word!
Installation
You can install the package via composer:
composer require jagdish-j-p/smpp-php
Usage
- Send SMS
use JagdishJP\SmppPhp\Smpp; $smpp = new Smpp('localhost',2775, true, true); $smpp->bindTransmitter('SENDERID', 'USERNAME', 'PASSWORD'); $response = $smpp->sendSms('recepient number', 'Message'); $smpp->close();
- Read SMS
use JagdishJP\SmppPhp\Smpp; $smpp = new Smpp('localhost',2775, true, true); $smpp->bindReceiver('SENDERID', 'USERNAME', 'PASSWORD'); $message = $smpp->readSms(); $smpp->close();
- Send and Read SMS
use JagdishJP\SmppPhp\Smpp; $smpp = new Smpp('localhost',2775, true, true); $smpp->bindTransreceiver('SENDERID', 'USERNAME', 'PASSWORD'); $response = $smpp->sendSms('recepient number', 'Message'); $message = $smpp->readSms(); $smpp->close();
统计信息
- 总下载量: 63
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-02-04
