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

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

xilwal/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.

017PHP

Since Jul 13Pushed 7y ago1 watchersCompare

[ Source](https://github.com/xilwal/sms)[ Packagist](https://packagist.org/packages/xilwal/sms)[ RSS](/packages/xilwal-sms/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

sms
===

[](#sms)

Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5(Updated to work with Laravel 5.5).Currently supported Gateways Sparrow, 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.

**Installation**

```
 composer require xilwal/sms
```

2. Or Edit the composer.json add to the require array &amp; run composer update
    ```
     "xilwal/sms": "dev-master"
    ```

    ```
     composer update
    ```
3. (Optional for Laravel 5.5) Add the service provider to the config/app.php file in Laravel
    ```
     Xilwal\Sms\SmsServiceProvider::class,
    ```
4. (Optional for Laravel 5.5) Add an alias for the Facade to the config/app.php file in Laravel
    ```
     'Sms' => Xilwal\Sms\Facades\Sms::class,
    ```
5. Publish the config &amp; views by running
    ```
     php artisan vendor:publish
    ```

**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 Xilwal\Sms\Facades\Sms;
```

Send Single SMS:-

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

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 / Mocker / Custom
// Default is Log
Sms::gateway('NameOfGateway')->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' => [
             'url' => 'http://example.com/api/sms.php?',
             'params' => [
                 'send_to_name' => 'mobile',
                 'msg_name' => 'message',
                 'others' => [
                     'uid' => '737262316a',
                     'pin' => 'YOURPIN',
                     'sender' => 'your_sender_id',
                     'route' => '0',
                     'pushid' => '1',
                 ],
             ],
             'add_code' => true,
         ],
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/685e5ba91c061bf190a85edbfdb98dcc572f88c45927e6d8c4def1d78c115c3b?d=identicon)[xilwal](/maintainers/xilwal)

---

Top Contributors

[![xilwal](https://avatars.githubusercontent.com/u/19216661?v=4)](https://github.com/xilwal "xilwal (5 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/xilwal-sms/health.svg)](https://phpackages.com/packages/xilwal-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)
