PHP code example of mohsenbostan / ghasedak-sms

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

    

mohsenbostan / ghasedak-sms example snippets


use MohsenBostan\GhasedakSms;

$sms = GhasedakSms::sendSingleSMS($message, $receptor);

return $sms;

use MohsenBostan\GhasedakSms;

$sms = GhasedakSms::sendType1MultipleSMS($message, $receptors);

return $sms;

use MohsenBostan\GhasedakSms;

$sms = GhasedakSms::sendType2MultipleSMS($message, $receptors);

return $sms;

use MohsenBostan\GhasedakSms;

$sms = GhasedakSms::sendVoiceMessage($message, $receptors);

return $sms;

php artisan vendor:publish --tag=config