PHP code example of bluedot-bd / laravel-bulk-sms

1. Go to this page and download the library: Download bluedot-bd/laravel-bulk-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/ */

    

bluedot-bd / laravel-bulk-sms example snippets


use LaravelBulkSms;
use Bluedot\LaravelBulkSms\SmsChannel;

public function via($notifiable)
{
    return [SmsChannel::class];
}

/**
 * Get the sms representation of the notification.
 *
 * @param  mixed  $notifiable
 */
public function toSms($notifiable)
{
    return (new LaravelBulkSms)
        ->to()
        ->line();
}

use LaravelBulkSms;
$sms = new LaravelBulkSms();
$sms->to('01xxxx')->from('01xxxx')->message('Your SMS Text')->send();