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)81.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 1w 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 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

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

1660d ago

PHP version history (2 changes)1.0PHP ^7.2

1.3PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a905191cc2ddf71d9092d0c4ddc28861bfa3f5d6f52c4d6e3cab342927b3ff2?d=identicon)[kalyan312](/maintainers/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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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