PHP code example of mdmasudsikdar71 / geezsms-php-client

1. Go to this page and download the library: Download mdmasudsikdar71/geezsms-php-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mdmasudsikdar71 / geezsms-php-client example snippets


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');
bash
composer