PHPackages                             susheelbhai/laravel-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. susheelbhai/laravel-sms

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

susheelbhai/laravel-sms
=======================

Multi-provider SMS integration for Laravel applications with notification channel support

v1.0.0(1mo ago)025MITPHP

Since Jul 10Pushed 1mo agoCompare

[ Source](https://github.com/susheelbhai/laravel-sms)[ Packagist](https://packagist.org/packages/susheelbhai/laravel-sms)[ RSS](/packages/susheelbhai-laravel-sms/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

Laravel SMS
===========

[](#laravel-sms)

Multi-provider SMS package for Laravel with notification channel support.

Supported Providers
-------------------

[](#supported-providers)

- **Fast2SMS** — Quick SMS and OTP routes
- **MSG91** — Flow API and OTP API
- **Mock** — Local/testing without API calls

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

[](#installation)

```
composer require susheelbhai/laravel-sms
php artisan sms:install
```

Configuration
-------------

[](#configuration)

```
SMS_ENABLED=1
SMS_PROVIDER=fast2sms
SMS_COUNTRY_CODE=91
SMS_TEST_NUMBER=9999999999

FAST2SMS_API_KEY=your_api_key
FAST2SMS_SENDER_ID=FSTSMS
FAST2SMS_ROUTE=q
FAST2SMS_OTP_ROUTE=otp

MSG91_AUTH_KEY=your_auth_key
MSG91_SENDER_ID=SMSIND
MSG91_FLOW_ID=your_flow_id
```

When `APP_ENV` is not `production`, all SMS are redirected to `SMS_TEST_NUMBER`.

Direct Usage
------------

[](#direct-usage)

```
use Susheelbhai\Sms\Facades\Sms;

Sms::send('9876543210', 'Your order is confirmed.');
Sms::sendOtp('9876543210', '482910');
Sms::via('msg91')->send('9876543210', 'Hello from MSG91');
```

Notification Channel
--------------------

[](#notification-channel)

```
public function via(object $notifiable): array
{
    $channels = ['database'];

    if (config('sms.enabled') == 1 && isset($notifiable->phone)) {
        $channels[] = 'sms';
    }

    return $channels;
}

public function toSms(object $notifiable): array
{
    return ['message' => 'Your order has been placed.'];
}

public function toSmsOtp(object $notifiable): array
{
    return ['otp' => $this->otp];
}
```

Switching Providers
-------------------

[](#switching-providers)

Set `SMS_PROVIDER` in `.env` to `fast2sms`, `msg91`, or `mock`.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance90

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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

49d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/64020920?v=4)[Susheel Kumar Singh](/maintainers/susheelbhai)[@susheelbhai](https://github.com/susheelbhai)

---

Top Contributors

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

---

Tags

laravelotpnotificationssmsmsg91fast2sms

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[gr8shivam/laravel-sms-api

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

10241.4k](/packages/gr8shivam-laravel-sms-api)

PHPackages © 2026

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