PHP code example of donnie / msg91-php

1. Go to this page and download the library: Download donnie/msg91-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/ */

    

donnie / msg91-php example snippets


,
    "  "donnie/msg91-php": "dev-master"
    }

// to verify add phone and code
$res = $otp->get('919998888777', '6984')->send();

// you can read the outcome from $res->type (error || success)