PHP code example of messageway / messagewaylaravel

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

    

messageway / messagewaylaravel example snippets


use MessageWay\MessageWayLaravel\Facades\MessageWayLaravel;

$message = MessageWayLaravel::sendViaSMS('MOBILE', $templateID);
dump($message);

use MessageWay\MessageWayLaravel\Facades\MessageWayLaravel;

$message = MessageWayLaravel::sendViaGap('MOBILE', $templateID, [
    'params' => ['param 1 value', 'param 2 value', 'param 3 value']
]);
dump($message);

use MessageWay\MessageWayLaravel\Facades\MessageWayLaravel;

$templateID = 2;
$message = MessageWayLaravel::sendViaIVR('MOBILE', $templateID);
dump($message);

use MessageWay\MessageWayLaravel\Facades\MessageWayLaravel;

$verify = MessageWayLaravel::verifyOTP($OTP);
dump($verify);

use MessageWay\MessageWayLaravel\Facades\MessageWayLaravel;

$status = MessageWayLaravel::getStatus($OTPRefrenceID);
dump($status);