/ghasedak-sms

Ghasedak SMS service package for laravel.

Primary LanguagePHPMIT LicenseMIT

Ghasedak SMS

Ghasedak SMS

Ghasedak SMS Service Package For Laravel.

This package makes sending SMS simply via Ghasedak.io SMS Service.

Important: This Package Requires Laravel 7 Or Newer!

To install package just do this few steps:

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}"

Usage

  • 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 :

  1. All data that you pass, Should be in string!
  2. Line number(s) should stored in .env . ( Installation Guide 3)
  3. When you use sendMultipleSMS, you should separate numbers by comma " , ". For example : " 09120000000,09180000000,09010000000 "

Contact Developer

You Can Contact Me Via This Information: