PHP code example of mastani / laravel-sorna-sms
1. Go to this page and download the library: Download mastani/laravel-sorna-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/ */
mastani / laravel-sorna-sms example snippets
// config/app.php
'providers' => [
...
mastani\SornaSMS\SornaSMSServiceProvider::class,
];
$sms = new SornaSMS();
$result = $sms->getSystemCredit(); // return Array( [success] => 1 [result] => 105000 )
$result = $sms->sendSMS('mobile number', 'message'); // return Array( [success] => 1 [result] => 8830401037900810478 )
shell
php artisan vendor:publish