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

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

shaab/sms
=========

A package for make SMS sending using various gateway under a single package. It will reduce the complisity of the code.

1.0.2(5y ago)023MITPHP

Since Jul 11Pushed 5y agoCompare

[ Source](https://github.com/shihabEK/Sms-Gateway-Handler)[ Packagist](https://packagist.org/packages/shaab/sms)[ RSS](/packages/shaab-sms/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (7)DependenciesVersions (8)Used By (0)

[![GitHub issues](https://camo.githubusercontent.com/0065f6c33c285c9de1c535a952faae2f7698e43a04e10eec3fa9200a0bfed12f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f736869686162454b2f536d732d476174657761792d48616e646c65722e737667)](https://github.com/shihabEK/Sms-Gateway-Handler/issues)[![GitHub forks](https://camo.githubusercontent.com/b860d0bbb5a9a91eaf46fe8a3ec441636e0012452ad2691ad29ea7824481dc39/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f736869686162454b2f536d732d476174657761792d48616e646c65722e737667)](https://github.com/shihabEK/Sms-Gateway-Handler/network)[![GitHub stars](https://camo.githubusercontent.com/ed2f373da4feeca20a92ea863a6236b4e8f7e6f0a4c2890ae4910eb7ea99890b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f736869686162454b2f536d732d476174657761792d48616e646c65722e737667)](https://github.com/shihabEK/Sms-Gateway-Handler/stargazers)[![GitHub license](https://camo.githubusercontent.com/f2c5ddb09bd4302dddeefca247842500b6b8b9dbdb0de186ffaf752a51aed80e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f736869686162454b2f536d732d476174657761792d48616e646c65722e737667)](https://github.com/shihabEK/Sms-Gateway-Handler)[![GitHub All Releases](https://camo.githubusercontent.com/3fe6891d8e3018e37a30601301f6ca34a203fc5a159655e60e2d0699f78e1de2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f736869686162454b2f536d732d476174657761792d48616e646c65722f746f74616c2e737667)](https://camo.githubusercontent.com/3fe6891d8e3018e37a30601301f6ca34a203fc5a159655e60e2d0699f78e1de2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f736869686162454b2f536d732d476174657761792d48616e646c65722f746f74616c2e737667)[![Twitter](https://camo.githubusercontent.com/00dfd7438ca5d5f0157baee5cff80b1aa20e5c5e6d8fb11bf87f05f358c05b24/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c2f68747470732f6769746875622e636f6d2f736869686162454b2f536d732d476174657761792d48616e646c65722e7376673f7374796c653d736f6369616c)](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2FshihabEK%2FSms-Gateway-Handler)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#)

SMS Gateway Handler
===================

[](#sms-gateway-handler)

This Laravel Package will helpto send SMS through various SMS Gateways simpler than ever.

### Supported Gateways

[](#supported-gateways)

1. [MSG91 ](https://msg91.com/)
2. [TextLocal](https://www.textlocal.com/)

### Installation

[](#installation)

1. Include the package in your project

    ```
    composer require "shaab/sms"

    ```
2. Add the service provider to your `config/app.php` providers array:

    **If you're installing on Laravel 5.5+ skip this step**

    - Add providers ```
        shaab\sms\SmsServiceProvider::class,

        ```
    - Add Aliase ```
        'SMS'   =>  shaab\sms\Facades\sms::class,

        ```
3. Publish the Vendor Config files by running:

    ```
    php artisan vendor:publish --provider="shaab\sms\SmsServiceProvider"

    ```

    - **Config the SMS Gateway in `Config/sms.php`.**

### Usage

[](#usage)

1. Add Facade to the controller:

    ```
    use shaab\sms\Facades\sms;

    ```
2. Call Send function

    - **Minimal**

        Syntax: ***SMS::send($to,$message);***

        ```
        SMS::send(9567######,"Thank you!");

        ```

        `to`: Single mobile number or an array of numbers

        Note: Its basic function in the package.
    - **Advanced**

        using Trait

        ```

        ```

        \--In development--
3. Check SMS Balance

    - MSG91

        Syntax: ***SMS::msg91\_balance(`Route`);***

        ```
        SMS::msg91_balance(4);

        ```

        Output: Return sms balance in given route.
    - TextLocal

        ```
        SMS::textlocal_balance();

        ```

        Output: Return sms balance in given route.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

Every ~65 days

Recently: every ~98 days

Total

7

Last Release

2106d ago

Major Versions

0.9.3 → 1.0.02020-05-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/d7256d8b02c7e849ef1f7214312678686414c33a1c975cd0f23dd9fae797e353?d=identicon)[shihabEK](/maintainers/shihabEK)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[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)
