arif98741/xenon

This is universal sms gateway service provider for Bangladesh. You can easily use this library for sending message using Bangladeshi sms gateway providers

Fund package maintenance!
Patreon

v1.0.1.5 2021-05-22 21:40 UTC

This package is auto-updated.

Last update: 2021-11-06 22:58:06 UTC


README

Xenon is a universal sms sending library specially for Bangladesh.
You can integrate this library in your php application easily for sending sms to any Bangladeshi mobile number. This is for raw php as well.

Installation

composer require arif98741/xenon

Sample Code

use Xenon\Provider\BulkSmsBD;
use Xenon\Sender;

require 'vendor/autoload.php';

$sender = Sender::getInstance();
try {
    $response = $sender->selectProvider(BulkSmsBD::class)
            ->setConfig(['username' => '017555XYZAB', 'password' => 'XXXXX'])
            ->setMessage('hello')
            ->setMobile('017XXXXXXX')
            ->send();
    var_dump($response);
} catch (Exception $e) {
    var_dump($e->getMessage());
}

Currently Supported SMS Gateways

  • BDBulkSMS
  • BulkSMSBD
  • MDLSMS
  • OnnoRokomSMS
  • SSLSms

We are continuously working in this open source library for adding more Bangladeshi sms gateway. If you fee 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.