PHP code example of vivekdhumal / gupshup-sms-php

1. Go to this page and download the library: Download vivekdhumal/gupshup-sms-php 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/ */

    

vivekdhumal / gupshup-sms-php example snippets




ivekDhumal\GupshupSMS\GupshupMessage;

$userid = 'Your user id';
$password = 'Your password';
$mask = 'Your Company Sender ID / Mask';
$entityId = 'Your company Entity ID if XXXXXXXX')
            ->message('Your message')
            ->send();

var_dump($response->status, $response->message, $response->details, 
$response->id, $response->phone);

bash
composer