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

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

softon/sms
==========

Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5.Currently supported Gateways Clickatell , MVaayoo, Gupshup, SmsAchariya, SmsCountry , SmsLane , Nexmo, Mocker / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.

v2.0.6(5y ago)4929.5k28[1 PRs](https://github.com/softon/sms/pulls)MITPHPPHP &gt;=5.4.0

Since Apr 19Pushed 5y ago5 watchersCompare

[ Source](https://github.com/softon/sms)[ Packagist](https://packagist.org/packages/softon/sms)[ RSS](/packages/softon-sms/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (19)Used By (0)

SMS
===

[](#sms)

Simple SMS(Short Messaging Service) Gateway Package for sending short text messages from your Application. Facade for Laravel 5(Updated to work with Laravel 5.\*).Currently supported Gateways Clickatell, MVaayoo, Gupshup, SmsAchariya, SmsCountry, SmsLane, Nexmo, Mocker, MSG91 / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.

**Installation**

1. Edit the composer.json add to the require array &amp; run composer update
    ```
     composer require softon/sms
    ```
2. (Optional for Laravel 5.5+) Add the service provider to the config/app.php file in Laravel
    ```
     Softon\Sms\SmsServiceProvider::class,
    ```
3. (Optional for Laravel 5.5) Add an alias for the Facade to the config/app.php file in Laravel
    ```
     'Sms' => Softon\Sms\Facades\Sms::class,
    ```
4. Publish the config &amp; views by running
    ```
     php artisan vendor:publish --provider="Softon\Sms\SmsServiceProvider"
    ```

**Usage**

Edit the config/sms.php. Set the appropriate Gateway and its parameters. Then in your code...
Put your blade template for the SMS in the resources/views/sms folder. Then use the below lines of code to send SMS.

```
use Softon\Sms\Facades\Sms;
```

Send Single SMS with View:-

```
// Params: [MobileNumber,Blade View Location,SMS Params If Required]
Sms::send('9090909090','sms.test',['param1'=>'Name 1']);
```

Send Single SMS with Raw Message:-

```
// Params: [MobileNumber,Blade View Location,SMS Params If Required]
Sms::send('9090909090','Any Message Text To be sent.');
```

Send Multiple SMS:-

```
// Params: [Array of MobileNumbers,Blade View Location,SMS Params If Required]
Sms::send(['87686655455','1212121212','2323232323'],'sms.test',['param1'=>'Name 1']);
```

Select the Gateway before sending the Message:-

```
/*****************************************************
 Gateways ::  log / clickatell / gupshup / mvaayoo /
              smsachariya / smscountry / smslane /
              nexmo / msg91 / mocker / custom
*****************************************************/

Sms::gateway('mocker')->send(['87686655455','1212121212','2323232323'],'sms.test',['param1'=>'Name 1']);
```

With Response:-

```
// This command gives you the reply recieved from the server.
Sms::send(['87686655455','1212121212','2323232323'],'sms.test',['param1'=>'Name 1'])->response();
```

**Custom Gateway**Let us suppose you want to use any other gateway. Find the API url with which sms can be sent. For Example : `http://example.com/api/sms.php?uid=737262316a&pin=YOURPIN&sender=your_sender_id&route=0&mobile=8888888888&message=How are You&pushid=1`

Then you can setup the Config of Custom Gateway like this:

```
        'custom' => [                           // Can be used for any gateway
            'url' => '',                        // Gateway Endpoint
            'params' => [                       // Parameters to be included in the request
                'send_to_name' => 'mobile',           // Name of the field of recipient number
                'msg_name' => 'message',               // Name of the field of Message Text
                'others' => [                   // Other Authentication params with their values
                    'uid' => '737262316a',
                    'pin' => 'YOURPIN',
                    'sender' => 'your_sender_id',
                    'route' => '0',
                    'pushid' => '1',
                ],
            ],
            'add_code' => true,                 // Append country code to the mobile numbers
        ],
```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 81.1% 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 ~116 days

Recently: every ~255 days

Total

18

Last Release

2064d ago

Major Versions

v0.0.2 → v1.0.02015-07-10

v1.0.10 → v2.0.02017-11-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b1203b3f0be622a928325d7138799bd0b50f4f7f5b09c608630c9961b3b0625?d=identicon)[softon](/maintainers/softon)

---

Top Contributors

[![softon](https://avatars.githubusercontent.com/u/598761?v=4)](https://github.com/softon "softon (30 commits)")[![azorpax](https://avatars.githubusercontent.com/u/12295737?v=4)](https://github.com/azorpax "azorpax (3 commits)")[![itsjithinv](https://avatars.githubusercontent.com/u/31924948?v=4)](https://github.com/itsjithinv "itsjithinv (3 commits)")[![tiipiik](https://avatars.githubusercontent.com/u/3844253?v=4)](https://github.com/tiipiik "tiipiik (1 commits)")

---

Tags

gupshuplaravel-5-packagelaravel-packagelaravel55phpsms-apisms-gatewaysms-messagessms-gatewaynexmomockerclickatellgupshupmvaayoosmsachariyasmscountrysmslaneCustom Smsitexmo

### Embed Badge

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

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

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[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)

PHPackages © 2026

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