mdmasudsikdar71 / geezsms-php-client
PHP client for Geez SMS Gateway
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 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.
Installation
You can install the library using Composer:
composer require mdmasudsikdar71/geezsms-php-client
Usage
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');
Documentation
For more details and advanced usage, please refer to the official GeezSMS API documentation.
Security
If you discover any security-related issues, please email masudsikdar85@gmail.com instead of using the issue tracker.
License
This library is open-sourced software licensed under the MIT license.