All Projects → arif98741 → laravelbdsms

arif98741 / laravelbdsms

Licence: MIT license
Xenon\LaravelBDSms is a sms gateway package for sending text message to Bangladeshi mobile numbers using several gateways like sslcommerz, greenweb, dianahost, metronet,boomcast, bulksmsbd, banglalink from Laravel framework

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravelbdsms

cht-gateway
Android SMS gateway app for CHT Applications
Stars: ✭ 60 (-11.76%)
Mutual labels:  sms, sms-gateway
matrix-pstn-bridge
☎️ A Matrix Puppet bridge for the public telephone network that supports a number of VoIP providers (Twillo, Vonage, etc.). Sends and receives voice and SMS.
Stars: ✭ 25 (-63.24%)
Mutual labels:  sms, sms-gateway
laravel-sms-api
Laravel package to provide SMS API integration.
Stars: ✭ 84 (+23.53%)
Mutual labels:  sms, laravel-sms
laravel-sms
Package for sending SMS from your Laravel app / Пакет для отправки смс из вашего приложения Laravel
Stars: ✭ 21 (-69.12%)
Mutual labels:  sms, laravel-sms
Kalkun
Open Source Web based SMS Manager
Stars: ✭ 186 (+173.53%)
Mutual labels:  sms, sms-gateway
Easy Sms
📲 一款满足你的多种发送需求的短信发送组件
Stars: ✭ 2,646 (+3791.18%)
Mutual labels:  sms, sms-gateway
jasmin-web-panel
📨 Jasmin Web Panel for Jasmin SMS Gateway
Stars: ✭ 33 (-51.47%)
Mutual labels:  sms, sms-gateway
onnorokom-sms
Laravel 5.* package for Sending SMS using OnnoRokom SMS service.
Stars: ✭ 21 (-69.12%)
Mutual labels:  sms, onnorokom-sms-service
laravel-sms
Laravel 贴合实际需求同时满足多种通道的短信发送组件
Stars: ✭ 67 (-1.47%)
Mutual labels:  sms, laravel-sms
vacomall
☀️☀️ 基于 dubbo 实现的分布式电商平台。
Stars: ✭ 42 (-38.24%)
Mutual labels:  sms
org-mode-sms-inbox
Harvest org-mode todos with Dropbox, Twilio, and IFTTT.
Stars: ✭ 19 (-72.06%)
Mutual labels:  sms
guli-mall
尚硅谷-谷粒商城代码及文档https://www.yuque.com/zhangshuaiyin/guli-mall
Stars: ✭ 233 (+242.65%)
Mutual labels:  sms
notifier
📟 Extensible library for building notifications and sending them via different delivery channels
Stars: ✭ 24 (-64.71%)
Mutual labels:  sms
smsender
A Go server for sending SMS
Stars: ✭ 32 (-52.94%)
Mutual labels:  sms
botkit-sms
Twilio Programmable SMS implementation for Botkit.
Stars: ✭ 18 (-73.53%)
Mutual labels:  sms
FreeMobileSMS
🐍📲 Python client to send SMS via french mobile operator Free Mobile
Stars: ✭ 22 (-67.65%)
Mutual labels:  sms
Offline-Browser-Android-App
SMS Based Browser for Android Devices for Retrieving Web Contents without WiFi/Internet.
Stars: ✭ 20 (-70.59%)
Mutual labels:  sms
Reborn
ReborN SMS BOMBER | SpeedX & 4NAT
Stars: ✭ 126 (+85.29%)
Mutual labels:  sms
notify
Send emails and text messages to your users if you work in Australian government
Stars: ✭ 15 (-77.94%)
Mutual labels:  sms
twilito
A tiny, zero dependency Ruby helper for sending text messages with Twilio 💬
Stars: ✭ 16 (-76.47%)
Mutual labels:  sms

Xenon\LaravelBDSms is a sms gateway package for sending text message to Bangladeshi mobile numbers using several gateways for Laravel Framework.

Installation

Step 1:

composer require xenon/laravelbdsms

Step 2:

Then, publish the package

php artisan vendor:publish --provider=Xenon\LaravelBDSms\LaravelBDSmsServiceProvider

Step 3:

Select Vendor From Console

Step 4:

php artisan config:cache && php artisan migrate

This will create a sms.php in the config/ directory and also table in your database. Set your desired provider as default_provider and fill up the necessary environment variable of that provider.

Usage

Simply use the facade

use Xenon\LaravelBDSms\Facades\SMS;

SMS::shoot('017XXYYZZAA', 'helloooooooo boss!');

Or, with facade alias

use LaravelBDSms;

LaravelBDSms::shoot('017XXYYZZAA', 'helloooooooo boss!');

Or, if you need to change the default provider on the fly

use Xenon\LaravelBDSms\Facades\SMS;
use Xenon\LaravelBDSms\Provider\Ssl;

$response = SMS::via(Ssl::class)->shoot('017XXYYZZAA', 'helloooooooo boss!');

That should do it.

Otherwise, if you want more control, you can use the underlying sender object. This will not touch any laravel facade or service provider.

Sample Code SSLCommerz

use Xenon\LaravelBDSms\Provider\Ssl;
use Xenon\LaravelBDSms\Sender;

$sender = Sender::getInstance();
$sender->setProvider(Ssl::class); 
$sender->setMobile('017XXYYZZAA');
$sender->setMessage('helloooooooo boss!');
$sender->setConfig(
   [
       'api_token' => 'api token goes here',
       'sid' => 'text',
       'csms_id' => 'sender_id'
   ]
);
$status = $sender->send();

Sample Code MimSMS

use Xenon\LaravelBDSms\Provider\MimSms;
use Xenon\LaravelBDSms\Sender;

$sender = Sender::getInstance();
$sender->setProvider(MimSms::class);
$sender->setMobile('017XXYYZZAA');
$sender->setMessage('This is test message');
$sender->setConfig(
   [
       'api_key' => 'api_key_goes_here',
       'type' => 'text',
       'senderid' => 'approved_send_id',
   ]
);

$status = $sender->send();

Demo Response Using SSL

array:6 [▼
  "status" => "response"
  "response" => "{"status":"FAILED","status_code":4003,"error_message":"IP Blacklisted"}"
  "provider" => "Xenon\LaravelBDSms\Provider\Ssl"
  "send_time" => "2021-07-06 08:03:23"
  "mobile" => "017XXYYZZAA"
  "message" => "helloooooooo boss!"
]

Currently Supported SMS Gateways

  • AjuraTech
  • Adn
  • Banglalink
  • BDBulkSMS
  • BoomCast
  • BulkSMSBD
  • Dianahost
  • Dianasms
  • ElitBuzz
  • Infobip
  • MDLSMS
  • Metronet
  • Mimsms
  • Mobireach
  • NovocomBD
  • OnnoRokomSMS
  • SSLSms
  • Tense
  • TwentyFourSmsBD
  • Viatech

We are continuously working in this open source library for adding more Bangladeshi sms gateway. If you feel something is missing then make a issue regarding that. If you want to contribute in this library, then you are highly welcome to do that....

For clear documentation read this blog in Medium!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].