PHP code example of webazin / kavenegar
1. Go to this page and download the library: Download webazin/kavenegar 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/ */
webazin / kavenegar example snippets
'providers' => [
...
webazin\KaveNegar\KaveNegarServiceProvider::class, //<--add this line at the end of provider array
]
php artisan vendor:publish
public function call(SMS $sms){
try {
$receptor = $mobile;
$message = "call message";
$date = "";
$localid = "";
$result = $sms->CallMakeTTS( $receptor , $message , $date , $localid );
}
catch ( HttpException $e ) {
echo $e->errorMessage();
}
}