epmnzava / nextsms
PHP 包,用于轻松集成 NextSms 批量短信解决方案
1.0.2
2023-10-22 14:02 UTC
Requires
- php: ^7.4|^8.0
Requires (Dev)
- phpunit/phpunit: ^9.0
README
安装
您可以通过 composer 安装此包
composer require epmnzava/nextsms
使用方法
use Epmnzava\Nextsms; public function send_sms_to_one_destination(){ $sms=new Nextsms("https://messaging-service.co.tz", "Storewid", "3434"); $response=$sms->sendSms("hellow world", "STOREWID", "255679079774"); } public function send_sms_to_multiple_destination(){ $sms=new Nextsms("https://messaging-service.co.tz", "Storewid", "3434"); $response=$sms->send_sms_mutipledestination("hellow world", "STOREWID", ["255679079774","255768172016"]); } //getting all delivery reports public function getAllDeliveryReports(){ $sms=new Nextsms("https://messaging-service.co.tz", "Storewid", "3434"); $response=$sms->getAllDeliveryReports(); } //getting single message delivery report public function getSingleMessageDeliveryReport(){ $messageId="28089492984101631440"; $sms=new Nextsms("https://messaging-service.co.tz", "Storewid", "3434"); $reponse=$sms->getMessageDeliveryReport($messageId); } //get your sms balance public function getBalance(){ $sms=new Nextsms("https://messaging-service.co.tz", "Storewid", "3434"); $reponse=$sms->getSmsBalance(); }
测试
composer test
变更日志
有关最近更改的更多信息,请参阅 CHANGELOG
贡献
有关详细信息,请参阅 CONTRIBUTING
安全
如果您发现任何安全问题,请发送电子邮件至 epmnzava@gmail.com 而不是使用问题跟踪器。
鸣谢
许可
MIT 许可证 (MIT)。有关更多信息,请参阅 许可文件