This package makes sending SMS simply via Ghasedak.io SMS Service.
Important: This Package Requires Laravel 7 Or Newer!
1 - Run the command below to install it in your Laravel application:
composer require mohsenbostan/ghasedak-sms
2 - Run this command and publish config file:
php artisan vendor:publish --tag=config
3 - Add this to your .env file and replace defaults:
GHASEDAK_API_KEY="${GHASEDAK_API_KEY}"
GHASEDAK_LINE_NUMBER="${GHASEDAK_LINE_NUMBER}"
GHASEDAK_LINE_NUMBERS="${GHASEDAK_LINE_NUMBERS}"
- You can send Simple Single SMS like example:
use MohsenBostan\GhasedakSms;
$sms = GhasedakSms::sendSingleSMS($message, $receptor);
return $sms;
- You can send SMS to multiple receptors with multiple line numbers like example:
use MohsenBostan\GhasedakSms;
$sms = GhasedakSms::sendType1MultipleSMS($message, $receptors);
return $sms;
- You can send SMS to multiple receptors with one line number like example:
use MohsenBostan\GhasedakSms;
$sms = GhasedakSms::sendType2MultipleSMS($message, $receptors);
return $sms;
- You can send Voice Message like example:
use MohsenBostan\GhasedakSms;
$sms = GhasedakSms::sendVoiceMessage($message, $receptors);
return $sms;
Usage Warnings :
- All data that you pass, Should be in string!
- Line number(s) should stored in .env . ( Installation Guide 3)
- When you use sendMultipleSMS, you should separate numbers by comma " , ". For example : " 09120000000,09180000000,09010000000 "
You Can Contact Me Via This Information:
- Email: mohsenbostandev@gmail.com
- Telegram: @mohsenbostan
- Instagram: @mohsenbostan.ir