PHP code example of phpawcom / ismartsms

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

    

phpawcom / ismartsms example snippets


'providers' => [
    S4D\Laravel\IsmartSMS\IsmartSMSProvider::class,
]

'aliases' => [
    S4D\Laravel\IsmartSMS\IsmartSMS::class,
]

if(IsmartSMS::SendSMS('{8 digits phone number}', '{SMS Content}')){ 
    // TODO: SMS has been sent, some action here
}else{
    // TODO: SMS couldn't be sent, some action here
}

print_r(IsmartSMS::getRawResults());

IsmartSMS::setFlashSMS()->SendSMS('{8 digits phone number}', '{SMS Content}')
bash
php artisan vendor:publish --provider "S4D\Laravel\IsmartSMS\IsmartSMSProvider"