PHP code example of khbd / laravel-sms-bd

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

    

khbd / laravel-sms-bd example snippets


(new SMS())->send('01945602071','Test SMS');

SMS::send('01945602071','Test SMS');

sms()->send('01945602071','Test SMS');

SMS::gateway('mygateway')->send('01945602071','Test SMS');

SMS::getBalance();

//or

SMS::gateway('mygateway')->getBalance();


sms()->getDeliveryReports(Request $request);

//or

sms()->gateway('mygateway')->getDeliveryReports(Request $request);
bash
php artisan vendor:publish --provider=Khbd\LaravelSmsBD\SMSServiceProvider
bash
php artisan vendor:publish --provider=Khbd\LaravelSmsBD\SMSServiceProvider  --tag="sms"
bash
php artisan migrate
bash
php artisan make:gateway MyGateway