Giter VIP home page Giter VIP logo

ghasedak-sms's Introduction

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:

ghasedak-sms's People

Contributors

mohsenbostan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.