PHP code example of bjthecod3r / laravel-smartsms
1. Go to this page and download the library: Download bjthecod3r/laravel-smartsms 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/ */
bjthecod3r / laravel-smartsms example snippets
php artisan vendor:publish --provider="BJTheCod3r\SmartSms\SmartSmsServiceProvider"
//You can change default route, type. You can add schedule, dlr, ref_id
return $smartSms->sendSms("080xxxxxxxx", "Testing sms")->route(0)->send();
//Check balance with
return $smartSms->checkBalance();