laravel send sms. kavenegar, ghasedak

Overview

Requirements

  • laravel >= 7

Installation

composer require ehsanmoradi/laravel-sms  

Publish the configuration file (this will create a laravel-sms.php file inside the config/ directory):

php artisan vendor:publish --tag=laravel-sms-config

variety of methods that may be used to inspect the response:

$response->body() : string;
$response->json() :array|mixed;
$response->object() : object;
$response->collect() : Illuminate\Support\Collection;
$response->status() : int;
$response->successful() : bool;
$response->failed() : bool;
$response->header($header) : string;
$response->headers() : array;

kavenegar

.env file.

KAVENEGAR_API_KEY=api_key

simple

use EhsanMoradi\LaravelSms\Facade\Kavenegar;

Kavenegar::send($message, $receptor, $sender, $date, $type, $localId, $hide);

// example

$response = Kavenegar::send('test message', '09010000000');
or
$response = Kavenegar::send('test message', ['09010000000', '09010000000']);

$response->object();

lookup

use EhsanMoradi\LaravelSms\Facade\Kavenegar;

Kavenegar::lookUp($receptor, $template, $token, $token2, $token3, $type);

// example

$response = Kavenegar::lookUp('09010000000', 'test-template', $token);
or
$response = Kavenegar::lookUp(['09010000000', '09010000000'], 'test-template', $token);

tts

use EhsanMoradi\LaravelSms\Facade\Kavenegar;

$response = Kavenegar::tts($message, $receptor, $date, $localId, $repeat);

status

use EhsanMoradi\LaravelSms\Facade\Kavenegar;

$response = Kavenegar::status($messageId);

select

use EhsanMoradi\LaravelSms\Facade\Kavenegar;

$response = Kavenegar::select($messageId);

cancel

use EhsanMoradi\LaravelSms\Facade\Kavenegar;

$response = Kavenegar::cancel($messageId);

receive

use EhsanMoradi\LaravelSms\Facade\Kavenegar;

$response = Kavenegar::receive($lineNumber,$isRead);

selectOutbox

use EhsanMoradi\LaravelSms\Facade\Kavenegar;

$response = Kavenegar::selectOutbox($startDate, $endDate, $sender);

latestOutBox

use EhsanMoradi\LaravelSms\Facade\Kavenegar;

$response = Kavenegar::latestOutBox($pageSize, $sender);

statusByLocalid

use EhsanMoradi\LaravelSms\Facade\Kavenegar;

$response = Kavenegar::statusByLocalid($localId);

info

use EhsanMoradi\LaravelSms\Facade\Kavenegar;

$response = Kavenegar::info();

config

use EhsanMoradi\LaravelSms\Facade\Kavenegar;

$response = Kavenegar::config();

ghasedak

.env file.

GHASEDAK_API_KEY=api_key

example:

use EhsanMoradi\LaravelSms\Facade\Ghasedak;

$response = Ghasedak::simple('test message', '09011000000');

$response->object();

methods:

use EhsanMoradi\LaravelSms\Facade\Ghasedak;

Ghasedak::simple($message, $receptor, $lineNumber, $sendDate, $checkId);

Ghasedak::verification($message, $receptor, $type, $template, $checkId, $param1, $param2, $param3, $param4, $param5, $param6, $param7, $param8, $param9, $param10);

Ghasedak::voice($message, $receptor, $sendDate);

Ghasedak::pair($message, $receptors, $lineNumber, $sendDate, $checkId);

Ghasedak::bulk($messages, $receptors, $lineNumbers, $sendDates, $checkIds);

Ghasedak::accountInfo();

Ghasedak::status($id, $type);
You might also like...
A package for verifying a user via call or SMS

Verify your users by call or SMS It's a common practice: a user signs up, you send an SMS to their phone with a code, they enter that code in your app

Larafirebase is a package thats offers you to send push notifications or custom messages via Firebase in Laravel.
Larafirebase is a package thats offers you to send push notifications or custom messages via Firebase in Laravel.

Introduction Larafirebase is a package thats offers you to send push notifications or custom messages via Firebase in Laravel. Firebase Cloud Messagin

Send Firebase push notifications with Laravel php framework.

FCM Notification Channel for Laravel Send Firebase push notifications with Laravel php framework. Installation You can install this package via compos

This package makes it easy to send notifications using RocketChat with Laravel 9.0+.

laravel-rocket-chat-notifications Introduction This package makes it easy to send notifications using RocketChat with Laravel 9.0+. Contents Installat

This package makes it easy to send web push notifications with Laravel.

Web push notifications channel for Laravel This package makes it easy to send web push notifications with Laravel. Installation You can install the pa

:computer: Send notifications to your desktop directly from your PHP script
:computer: Send notifications to your desktop directly from your PHP script

About JoliNotif JoliNotif is a cross-platform PHP library to display desktop notifications. It works on Linux, Windows or MacOS. Requires PHP = 7.2 (

A PHP Library to easily send push notifications with the Pushwoosh REST Web Services.

php-pushwoosh A PHP Library to easily send push notifications with the Pushwoosh REST Web Services. First sample, creating a Pushwoosh message // Crea

Notifications in PHP (notify-send, growl, etc) like that.

#Nod Notifications in PHP (notify-send, growl, etc) like that. ##Examples Letting Nod figure out the best Adapter to use (not recommend ATM, only work

Send push notifications to apple devices (iPhone, iPad, iPod).

Apple Apn Push Send push notifications to apple devices (iPhone, iPad, iPod). Support authenticators: Certificate Json Web Token Supported protocols:

Owner
ehsan moradi
ehsan moradi
Implementations for different SMS providers for EspoCRM. Can be used for 2-factor authentication or automatic SMS sending via Workflow and BPM tools.

SMS Providers for EspoCRM An installable extension. Supported SMS Providers Twilio Spryng sms77 Setting up Install the extension. At Administration >

EspoCRM - Open Source CRM 11 Nov 30, 2022
@Authy notification channel for @Laravel, with the ability to send in-app, sms, and call verification tokens.

Authy Notification Channel for Laravel Authy notification channel for Laravel, with the ability to send in-app, sms, and call verification tokens. Tab

Laravel Notification Channels 57 Dec 19, 2022
Send SMS with easy using BEEM

beem-sms-api Send SMS with easy using BEEM Installation You must be using composer to be able to use this library. If composer 1.x is installed, make

Hosanna Higher Technologies 4 Dec 24, 2021
Laravel SMS Notification Channel

Laravel SMS Notification Channel Installation composer require guangda/laravel-sms-notification-channel env 配置 SMS_PROVIDER=yunpian SMS_SIGNATURE=【签名

Guangda 6 Dec 29, 2021
SMS service provider for Laravel

laravel-sms SMS service provider for Laravel and Lumen. Uses SMS Client to enable sending SMS messages using the following drivers: nexmo clockwork te

Matthew Daly 34 Nov 29, 2022
An SMS notification channel for the PHP framework Laravel.

Laravel SMS notification channel An SMS notification channel for the PHP framework Laravel. Supported SMS gateways: 46elks Cellsynt Telenor SMS Pro Tw

Andreas 2 Jan 22, 2022
Sends notifications via one or more channels (email, SMS, ...).

Notifier Component The Notifier component sends notifications via one or more channels (email, SMS, ...). Resources Documentation Contributing Report

Symfony 610 Jan 3, 2023
Fake SMS (as email during development) Notifier Bridge

Fake SMS Notifier Provides Fake SMS (as email during development) integration for Symfony Notifier. DSN example FAKE_SMS_DSN=fakesms+email://default?t

Symfony 17 May 23, 2022
Provides Turbo SMS integration for Symfony Notifier.

TurboSms Notifier Provides TurboSms integration for Symfony Notifier. DSN example TURBOSMS_DSN=turbosms://AUTH_TOKEN@default?from=FROM where: AUTH_TO

Symfony 5 May 23, 2022
all geteways (SMS&Payments geteways) By (Mahmoud Ibrahim)

All gateways payments & SMS package name: gateways package version: v1.1 author : mahmoud ibrahim description :provide gateways payments and SMS to in

php anonymous 24 Dec 26, 2022