GeezSMS PHP Client is a PHP library for interacting with the GeezSMS API. It provides an easy-to-use interface for sending OTP, SMS, and bulk SMS messages.
You can install the library using 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');
For more details and advanced usage, please refer to the official GeezSMS API documentation.
If you discover any security-related issues, please email masudsikdar85@gmail.com instead of using the issue tracker.
This library is open-sourced software licensed under the MIT license.