PHP code example of sachinkiranti / aakash-sms

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

    

sachinkiranti / aakash-sms example snippets


'providers' => [
    // ...
    SachinKiranti\AakashSms\AakashSmsServiceProvider::class,
];

// $recipients can be array of phone number or a single phone number
 (new AakashSms(98xxxxxxxx, "Hello From sachinkiranti/aakash-sms repo."))->send()
//  or sending to multiple phone number
 (new AakashSms([98xxxxxxxx, 98xxxxxxxx], "Hello From sachinkiranti/aakash-sms repo."))->send()

// Single recipient
 send_aakash_sms (98xxxxxxxx, "Hello From sachinkiranti/aakash-sms repo.");
// Or multiple recipients
 send_aakash_sms ([98xxxxxxxx, 98xxxxxxxx], "Hello From sachinkiranti/aakash-sms repo.");

php artisan vendor:publish --tag=aakash-sms