PHPackages                             rmdmostakim/bdsms - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. rmdmostakim/bdsms

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

rmdmostakim/bdsms
=================

A flexible and extensible Laravel package for sending SMS through multiple Bangladeshi and international gateways, including Twilio, SSL Wireless, MimSMS, Infobip. Easily configurable and developer-friendly.

v1.0.0.0(8mo ago)09MITPHPPHP ^8.2

Since Aug 30Pushed 8mo agoCompare

[ Source](https://github.com/Rmdmostakim/bdsms)[ Packagist](https://packagist.org/packages/rmdmostakim/bdsms)[ RSS](/packages/rmdmostakim-bdsms/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Project Title
=============

[](#project-title)

A brief description of what this project does and who it's for

📦 BdSms
=======

[](#-bdsms)

A flexible and extensible Laravel package for sending SMS through multiple Bangladeshi and international gateways — including Twilio, SSL Wireless, MimSMS, Infobip.

---

🛠 Supported Gateway
-------------------

[](#-supported-gateway)

- ✅ Twilio
- ✅ MimSMS
- ✅ SslWireless
- ✅ Infobip

---

🚀 Installation
--------------

[](#-installation)

```
composer require rmdmostakim/bdsms
```

---

🔧 Configuration
---------------

[](#-configuration)

### 1. Publish Config File

[](#1-publish-config-file)

```
 php artisan vendor:publish --provider="RmdMostakim\BdSms\SmsServiceProvider"
```

This will publish `config/bdsms.php`.

### 2. Run Migration

[](#2-run-migration)

```
php artisan migrate
```

### 3. Set Up .env Values

[](#3-set-up-env-values)

#### ✅ Example for Twilio:

[](#-example-for-twilio)

```
#twilio credentials
TWILIO_ACCOUNT_SID="your-twilio-sid"
TWILIO_AUTH_TOKEN="your-twilio-auth-token"
TWILIO_NUMBER="your-twilio-number"
```

#### ✅ Example for SSL Wireless:

[](#-example-for-ssl-wireless)

```
#ssl wireless credentials
SSL_WIRELESS_API_TOKEN="your_ssl_api_key"
SSL_WIRELESS_SID="your_ssl_username"
SSL_WIRELESS_API_URL="https://smsplus.sslwireless.com/api/v3/send-sms"
```

#### ✅ Example for MimSMS:

[](#-example-for-mimsms)

```
#mim sms credentials
MIM_SMS_API_KEY="your-mimsms-app-key"
MIM_SMS_USER_NAME="your-mimsms-user-name"
MIM_SMS_SENDER_NAME="your-mimsms-name"
MIM_SMS_API_URL="https://api.mimsms.com/api/SmsSending/SMS"
```

#### ✅ Example for Infobip:

[](#-example-for-infobip)

```
#infobip credentials
INFOBIP_API_KEY="your-infobip-api-key"
INFOBIP_API_URL="your-infobip-api-url"
INFOBIP_NUMBER="your-infobip-number"
```

---

✅ Usage
-------

[](#-usage)

### 🔹 Using Facade (`BdSms::TwilioSms()->single()`)

[](#-using-facade-bdsmstwiliosms-single)

#### ✅ Send single SMS using Twilio:

[](#-send-single-sms-using-twilio)

```
use RmdMostakim\BdSms\Facades\BdSms;

BdSms::TwilioSms()->single('+8801XXXXXXXXX', 'Hello from Twilio!');
```

#### ✅ Send using SSL Wireless:

[](#-send-using-ssl-wireless)

```
BdSms::SslWireless()->single('017XXXXXXXX', 'SSL SMS test');
```

#### ✅ Send using MimSMS (default type = 'D'):

[](#-send-using-mimsms-default-type--d)

```
BdSms::MimSms()->single('017XXXXXXXX', 'MimSMS message');
```

#### ✅ Send using Infobip:

[](#-send-using-infobip)

```
BdSms::InfobipSms()->single('017XXXXXXXX', 'Infobip test message');
```

#### ✅ Multiple messages:

[](#-multiple-messages)

📤 Send to Multiple Recipients with a Single Message

```
BdSms::TwilioSms()->multiple(['017XXXXXXXX', '017YYYYYYYY'],'Hello World!');
```

📤 Send Personalized Messages to Multiple Recipients

```
BdSms::TwilioSms()->multiple(
    ['017XXXXXXXX', '017YYYYYYYY'],
    ['Hello A', 'Hello B']
);
```

#### ✅ Check SMS Status by UUID:

[](#-check-sms-status-by-uuid)

```
$status = BdSms::check('your-sms-uuid');

if ($status?->status === 'sent') {
    // Delivered or accepted
}
```

---

🧩 Dependency Injection
----------------------

[](#-dependency-injection)

You can inject `SmsManager` into a controller or service:

```
use RmdMostakim\BdSms\SmsManager;

class SmsService
{
    public function __construct(protected SmsManager $sms) {}

    public function notifyUser(string $phone)
    {
        $this->sms->TwilioSms()->single($phone, 'Your order has been placed!');
    }
}
```

---

📦 Drivers Supported
-------------------

[](#-drivers-supported)

MethodGateway`TwilioSms()`Twilio`SslWireless()`SSL Wireless`MimSms($type)`MimSMS`InfobipSms()`InfobipEach returns a driver instance that supports:

- `single(string $to, string $msg): array`
- `multiple(array $to, string|array $msg): array`

---

🅾️ MimSMS Transaction Type
--------------------------

[](#🅾️-mimsms-transaction-type)

The `MimSms` driver requires a transaction type which defines the **category of SMS** you want to send. This value is passed into the constructor as a single-character string.

#### ✅ Available types:

[](#-available-types)

TypeDescription`T`**Transactional** SMS`P`**Promotional** SMS`D`**Dynamic Masking** SMS> Default is `'D'` if not provided.

#### 📌 Example usage:

[](#-example-usage)

```
BdSms::MimSms()->single('017XXXXXXXX', 'Default D type SMS');
BdSms::MimSms('P')->single('017XXXXXXXX', 'Promotional SMS');
```

---

🧪 Build Your Own Driver
-----------------------

[](#-build-your-own-driver)

Implement the interface:

```
use RmdMostakim\BdSms\Contracts\SmsInterface;

class CustomSmsDriver implements SmsInterface
{
    public function single(string $to, string $msg): array {
        // implement
    }

    public function multiple(array $to, string|array $msg): array {
        // implement
    }
}
```

---

📜 License
---------

[](#-license)

MIT © [RmdMostakim](https://github.com/rmdmostakim)

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance64

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

252d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/777658ad53a39d834afc61e68cf49dcbfc4e2278e75b7ce14af992bbf4b1508e?d=identicon)[Rmdmostakim](/maintainers/Rmdmostakim)

---

Top Contributors

[![Rmdmostakim](https://avatars.githubusercontent.com/u/69758064?v=4)](https://github.com/Rmdmostakim "Rmdmostakim (4 commits)")

### Embed Badge

![Health badge](/badges/rmdmostakim-bdsms/health.svg)

```
[![Health](https://phpackages.com/badges/rmdmostakim-bdsms/health.svg)](https://phpackages.com/packages/rmdmostakim-bdsms)
```

###  Alternatives

[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/laravel-failed-job-monitor

Get notified when a queued job fails

1.0k2.6M4](/packages/spatie-laravel-failed-job-monitor)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
