mdmasudsikdar71 / geezsms-php-client
Geez SMS 网关的 PHP 客户端
1.1.0
2024-03-21 19:41 UTC
Requires
- guzzlehttp/guzzle: ^7.8
Requires (Dev)
- mockery/mockery: ^1.6
- phpunit/phpunit: ^10.5
README
GeezSMS PHP 客户端是一个用于与 GeezSMS API 交互的 PHP 库。它提供了一个易于使用的界面来发送OTP、短信和批量短信。
安装
您可以使用 Composer 安装此库。
composer require mdmasudsikdar71/geezsms-php-client
用法
use MDMasudSikdar\Geezsms\GeezSmsClient; // Initialize the GeezSmsClient with your token $smsClient = new GeezSmsClient('TOKEN'); // Send an OTP to a phone number $response = $smsClient->sendOtp('2519XXXXXXXX'); // Send an SMS to a phone number with a message $response = $smsClient->sendSms('2519XXXXXXXX', 'Hello, this is a test message.'); // Send bulk SMS to multiple phone numbers with a common message and notification URL $phones = ['2519XXXXXXXX', '2519XXXXXXXX']; $response = $smsClient->sendBulk($phones, 'Hello, this is a bulk message.', 'https://example.com/notify');
文档
有关更多详细信息和高级用法,请参阅官方GeezSMS API文档。
安全性
如果您发现任何与安全相关的问题,请通过电子邮件masudsikdar85@gmail.com联系,而不是使用问题跟踪器。
许可证
此库是开源软件,受MIT许可证许可。