PHPackages                             khbd/laravel-sms-bd - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. khbd/laravel-sms-bd

ActiveLibrary[HTTP &amp; Networking](/categories/http)

khbd/laravel-sms-bd
===================

Laravel sms BD is a Laravel Package for Sending out SMS from multiple Gateways

1.3(4y ago)71.7k3[2 PRs](https://github.com/kalyan312/laravel-sms-bd/pulls)MITPHPPHP ^7.2|^8.0

Since Feb 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/kalyan312/laravel-sms-bd)[ Packagist](https://packagist.org/packages/khbd/laravel-sms-bd)[ RSS](/packages/khbd-laravel-sms-bd/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Laravel SMS BD
==============

[](#laravel-sms-bd)

This is a Laravel library to send SMS and switch between multiple SMS Gateways.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require khbd/laravel-sms-bd
```

The package will register itself automatically.

Then publish the package configuration file

```
php artisan vendor:publish --provider=Khbd\LaravelSmsBD\SMSServiceProvider
```

or

```
php artisan vendor:publish --provider=Khbd\LaravelSmsBD\SMSServiceProvider  --tag="sms"
```

For store sms log in db run migration

```
php artisan migrate
```

Usage
-----

[](#usage)

Check the config file of all variables required, and then

```
(new SMS())->send('01945602071','Test SMS');
```

or using Facade

```
SMS::send('01945602071','Test SMS');
```

or using helper

```
sms()->send('01945602071','Test SMS');
```

Adding new Gateway
------------------

[](#adding-new-gateway)

use command

```
php artisan make:gateway MyGateway
```

A class `MyGateway.php` will be generated under `App/Gateways` folder.

The class extends the SMSInterface

Remember to `map` your gateway in the sms config file.

### Changing Gateway

[](#changing-gateway)

Apart from declaring your default gateway on the sms config or env files, you can also change the gateway you want to use on the fly. e.g:

```
SMS::gateway('mygateway')->send('01945602071','Test SMS');
```

### Checking SMS balance

[](#checking-sms-balance)

```
SMS::getBalance();

//or

SMS::gateway('mygateway')->getBalance();
```

### Delivery Reports

[](#delivery-reports)

```
sms()->getDeliveryReports(Request $request);

//or

sms()->gateway('mygateway')->getDeliveryReports(Request $request);
```

.env Config
-----------

[](#env-config)

Bangladesh SMS
==============

[](#bangladesh-sms)

Currently Default SMS Gateway is [Bangladesh SMS](http://bangladeshsms.com/)

So .env config is following -

```
BANGLADESH_SMS_BASE_URL = 'http://bangladeshsms.com'
BANGLADESH_SMS_USERNAME = 'username'
BANGLADESH_SMS_API_KEY = 'api_key'
BANGLADESH_SMS_FROM = 'api_provided_number'

SMS_ACTIVATE = true // true = if you want to enable sms sending functionality
SMS_LOG = true  // true = if you want to save sms log in database
```

Teletalk SMS
============

[](#teletalk-sms)

If you use teletalk sms gateway, please set following config value in .env file of config/sms.php file -

```
TELETALK_SMS_BASE_URL = 'http://bulkmsg.teletalk.com.bd'
TELETALK_SMS_USERNAME = 'APIUsername'
TELETALK_SMS_PASSWORD = 'APIPassword'
TELETALK_SMS_ACODE = 'YourA-Code'
TELETALK_SMS_MASKING = 'MaskingNumber'

SMS_ACTIVATE = true // true = if you want to enable sms sending functionality
SMS_LOG = true  // true = if you want to save sms log in database
```

Contributing
------------

[](#contributing)

Suggestions, pull requests , bug reporting and code improvements are all welcome. Feel free.

TODO
----

[](#todo)

Write Tests

Credits
-------

[](#credits)

- [Kalyan Halder](https://github.com/kalyan312)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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

Every ~83 days

Total

4

Last Release

1707d ago

PHP version history (2 changes)1.0PHP ^7.2

1.3PHP ^7.2|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10464136?v=4)[Kalyan Halder](/maintainers/kalyan312)[@kalyan312](https://github.com/kalyan312)

---

Top Contributors

[![kalyan312](https://avatars.githubusercontent.com/u/10464136?v=4)](https://github.com/kalyan312 "kalyan312 (2 commits)")[![rahulbgc21](https://avatars.githubusercontent.com/u/22004094?v=4)](https://github.com/rahulbgc21 "rahulbgc21 (1 commits)")

### Embed Badge

![Health badge](/badges/khbd-laravel-sms-bd/health.svg)

```
[![Health](https://phpackages.com/badges/khbd-laravel-sms-bd/health.svg)](https://phpackages.com/packages/khbd-laravel-sms-bd)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M7.0k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M92](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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