PHP code example of zedox / laravel-dhiraagu-sms

1. Go to this page and download the library: Download zedox/laravel-dhiraagu-sms 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/ */

    

zedox / laravel-dhiraagu-sms example snippets


'dhiraagu-sms' => [
    'url' => env('DHIRAAGU_SMS_URL'),
    'userid' => env('DHIRAAGU_SMS_USERID'),
    'password' => env('DHIRAAGU_SMS_PASSWORD'),
],

use Zedox\LaravelDhiraaguSms\Facades\DhiraaguSms;

    DhiraaguSms::send($toMobile, $message)

Route::get('test-sms', function () {
    try {
        DhiraaguSms::send('9607XXXXXX', 'Hello World');
    } catch (\Exception $e) {
        return response()->json(['message' => $e->getMessage()]);
    }
    return response()->json(['message' => 'Success: SMS sent']);
});