PHPackages                             sms\_net\_bd/sms - 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. sms\_net\_bd/sms

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

sms\_net\_bd/sms
================

SMS Package for Laravel - Simplify SMS integration with the SMS Gateway from sms.net.bd. Send message, check balance, get delivery reports, and manage SMS effortlessly in your Laravel applications.

1.0.4(2y ago)2246↓100%2MITPHP

Since Dec 26Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/sms-bd/sms-bd-laravel)[ Packagist](https://packagist.org/packages/sms_net_bd/sms)[ Docs](https://github.com/smsnetbd/sms-net-bd-laravel)[ RSS](/packages/sms-net-bd-sms/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

SMS.BD SMS Package for Laravel
==============================

[](#smsbd-sms-package-for-laravel)

[![Packagist version](https://camo.githubusercontent.com/7a8c4d209dd0ed984226b66f9e733db96f6985c7ea667303ce2bbad28e8eae50/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736d735f6e65745f62642f736d733f763d31)](https://packagist.org/packages/sms_net_bd/sms) [![mit](https://camo.githubusercontent.com/5caa455d8debc46fb23abbadb45a733a937f3910a73fc875c2f7820468e1bb54/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e)](https://packagist.org/packages/sms_net_bd/sms) [![Packagist Downloads](https://camo.githubusercontent.com/dfd8129c7da7687b796374521cb555c134854d0d1fc40e477949a6f0e56a3aae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736d735f6e65745f62642f736d733f763d31)](https://camo.githubusercontent.com/dfd8129c7da7687b796374521cb555c134854d0d1fc40e477949a6f0e56a3aae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736d735f6e65745f62642f736d733f763d31)

SMS Package for Laravel - Simplify SMS integration with the SMS Gateway from [sms.bd](https://www.sms.bd/api). Send messages, check balance, get delivery reports, and manage SMS effortlessly in your Laravel applications.

The SMS Laravel package provides convenient access to the sms.bd REST API from php applications.

Sign up for a [free sms.bd account](https://www.sms.bd/signup/) today and get your API Key from our advanced SMS platform. Plus, enjoy free credits to try out your API in full!

Example
-------

[](#example)

Check out the other code [examples](https://www.sms.bd/api#:~:text=SMS%20API%20Code-,samples,-.)

Features
--------

[](#features)

- Send SMS messages through the [sms.bd sms gateway](https://www.sms.bd/api).
- Schedule SMS messages for future delivery.
- Send SMS to multiple recipients with sender id
- Retrieve SMS delivery reports.
- Check account balance and balance validity.

Requirements
------------

[](#requirements)

- Laravel Framework 7.x
- PHP 7.2 or higher

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

[](#installation)

Install the package via Composer:

```
composer require sms_net_bd/sms
```

Set your SMS API key in the `.env` file:

```
SMS_NET_BD_API_KEY=your-api-key
```

Note: Ensure to replace placeholder `your-api-key` with your actual API key

Usage
-----

[](#usage)

```
use sms_net_bd\SMS; // Import the SMS class

// Create an instance of the class
$sms = new SMS();

try {
    // Send Single SMS
    $response = $sms->sendSMS(
        "Hello, this is a test SMS!",
        "01701010101"
    );

    // Send Multiple Recipients SMS
    $response = $sms->sendSMS(
        "Hello, this is a test SMS!",
        "01701010101,+8801856666666,8801349494949,01500000000"
    );

    // Send SMS With Sender ID or Masking Name
    $response = $sms->sendSMS(
        "Hello, this is a test SMS!",
        "01701010101",
        "sms.net.bd"
    );

    // Schedule SMS for future delivery
    $response = $sms->sendScheduledSMS(
        "Scheduled SMS",
        "8801701010101",
        "2023-12-01 14:30:00" // Date format: YYYY-MM-DD HH:MM:SS
    );

    // Schedule SMS for future delivery with Sender ID
    $response = $sms->sendScheduledSMS(
        "Scheduled SMS with date",
        "8801701010101",
        "2023-12-01 14:30:00",
        "sms.net.bd"
    );

    // Get SMS delivery report
    $report = $sms->getReport($requestId);

    // Check account balance
    $balanceInfo = $sms->getBalance();

} catch (Exception $e) {
    // handle $e->getMessage();
}
```

Note: Ensure to replace placeholder values with your phone numbers and messages.

Error Handling
--------------

[](#error-handling)

The package provides better error handling. If the API response has an error (error != 0), an exception is thrown with the error message.

```
try {
    $response = $sms->sendSMS('Invalid Recipient', '+invalid-number');
} catch (\Exception $e) {
    // Handle the exception, log the error, or display a user-friendly message.
    echo 'Error: ' . $e->getMessage();
}
```

License
-------

[](#license)

This package is open-source software licensed under the [MIT license](LICENSE.md)

Contribution
------------

[](#contribution)

Contributions are welcome! Feel free to submit [issues](https://github.com/smsnetbd/sms-net-bd-laravel/issues) or [open a pull request](https://github.com/smsnetbd/sms-net-bd-laravel/pulls).

Support
-------

[](#support)

If you have any questions or feedback, please [open an issue](https://github.com/smsnetbd/sms-net-bd-laravel/issues) or [open a pull request](https://github.com/smsnetbd/sms-net-bd-laravel/pulls).

###  Health Score

36

—

LowBetter than 81% of packages

Maintenance60

Regular maintenance activity

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.8% 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 ~22 days

Total

5

Last Release

776d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15964872?v=4)[mdriaz](/maintainers/mdriaz)[@mdriaz](https://github.com/mdriaz)

---

Top Contributors

[![md-riaz](https://avatars.githubusercontent.com/u/33659227?v=4)](https://github.com/md-riaz "md-riaz (30 commits)")[![dev-talha](https://avatars.githubusercontent.com/u/53362081?v=4)](https://github.com/dev-talha "dev-talha (1 commits)")[![mdashraful305](https://avatars.githubusercontent.com/u/77872382?v=4)](https://github.com/mdashraful305 "mdashraful305 (1 commits)")

---

Tags

bdsmsbulk-smslaravelphpsmssms-gatewaysms-net-bdmessageapilaravelnotificationsmsgatewaycommunicationsms-gatewaysms.net.bd

### Embed Badge

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

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

###  Alternatives

[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)[ghasedak/php

ghasedak sms gateway package for PHP

2044.3k7](/packages/ghasedak-php)[ghanem/laravel-smsmisr

Send SMS and SMS Notification via SMS Misr for Laravel

194.8k](/packages/ghanem-laravel-smsmisr)

PHPackages © 2026

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