PHP code example of dash8x / dhiraagu-sms-notification
1. Go to this page and download the library: Download dash8x/dhiraagu-sms-notification 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/ */
dash8x / dhiraagu-sms-notification example snippets
// config/services.php
...
'dhiraagu' => [
'username' => env('DHIRAAGU_SMS_USERNAME'), // Bulk SMS gateway username, usually same as your sender name
'password' => env('DHIRAAGU_SMS_PASSWORD'), // Bulk SMS gateway password
'url' => env('DHIRAAGU_SMS_URL'), // optional, use only if you need to override the default,
// defaults to https://bulkmessage.dhiraagu.com.mv/partners/xmlMessage.jsp
],
...
use Dash8x\DhiraaguSmsNotification\DhiraaguSmsNotificationChannel;
use Illuminate\Notifications\Notification;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return [DhiraaguSmsNotificationChannel::class];
}
public function toDhiraagu($notifiable)
{
return "Your {$notifiable->service} account was approved!";
}
}
public function routeNotificationForDhiraagu()
{
return '+9607777777';
}
public function routeNotificationForDhiraagu()
{
return ['+9607777777', '+9609999999'];
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.