PHPackages                             abusalam/laravel-smsgateway - 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. abusalam/laravel-smsgateway

ActiveLibrary

abusalam/laravel-smsgateway
===========================

Laravel Implementation of SMS Gateway

1.1.0(2y ago)13792MITPHPPHP &gt;=7.1

Since Sep 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/abusalam/laravel-smsgateway)[ Packagist](https://packagist.org/packages/abusalam/laravel-smsgateway)[ RSS](/packages/abusalam-laravel-smsgateway/feed)WikiDiscussions dev Synced 1mo ago

READMEChangelogDependencies (1)Versions (11)Used By (0)

Send SMS from your Laravel app [![License](https://camo.githubusercontent.com/b3d269801f19e1fbfaea0a4d46952786e63f328d4b15230a0dd8f1e2702b7786/68747470733a2f2f706f7365722e707567782e6f72672f61627573616c616d2f6c61726176656c2d736d73676174657761792f6c6963656e7365)](https://packagist.org/packages/abusalam/laravel-smsgateway)
=================================================================================================================================================================================================================================================================================================================================

[](#send-sms-from-your-laravel-app-)

[![Latest Stable Version](https://camo.githubusercontent.com/464f04b48aa3980ba3b61526bbb88ac49ab7007b5d6cfc3b9e89ab4d387a3a27/68747470733a2f2f706f7365722e707567782e6f72672f61627573616c616d2f6c61726176656c2d736d73676174657761792f762f737461626c65)](https://packagist.org/packages/abusalam/laravel-smsgateway) [![Total Downloads](https://camo.githubusercontent.com/1064f1cf9e2c2bcd5022eb136b0c803b97c1e509528020831aeca6d7e39a26aa/68747470733a2f2f706f7365722e707567782e6f72672f61627573616c616d2f6c61726176656c2d736d73676174657761792f646f776e6c6f616473)](https://packagist.org/packages/abusalam/laravel-smsgateway) [![Build Status](https://camo.githubusercontent.com/d3b1d3e8230c7985f5930170db350defaa0c30d271d5e05127d6360391cea489/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f61627573616c616d2f6c61726176656c2d736d73676174657761792f6261646765732f6275696c642e706e673f623d646576)](https://scrutinizer-ci.com/g/abusalam/laravel-smsgateway/build-status/dev) [![Code Intelligence Status](https://camo.githubusercontent.com/a67a645d8e26e5fa5184f5e0dd492c2e8d173ab393af105784539b273b47aabe/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f61627573616c616d2f6c61726176656c2d736d73676174657761792f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d646576)](https://scrutinizer-ci.com/code-intelligence) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/3be9a3fa1da6104d7e862c3a2ad65978d52083a1ee77d931f14e7f4aaac815a6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f61627573616c616d2f6c61726176656c2d736d73676174657761792f6261646765732f7175616c6974792d73636f72652e706e673f623d646576)](https://scrutinizer-ci.com/g/abusalam/laravel-smsgateway/?branch=dev)

The `abusalam/laravel-smsgateway` package provides easy to use functions to send sms from your app. Works with CDAC SMS Gateway Services out of the box.

Here's a demo of how you can use it:

```
use AbuSalam\SmsGateway;

# Code...

$smsGateway = new SmsGateway;
$smsGateway->toRecipient('9876543210')
    ->withTemplateId('123456789012345678')
    ->withSms('Computer science is no more about computers than astronomy is about telescopes. - Edsger Dijkstra')
    ->sendSms();

# Code...
```

Documentation
-------------

[](#documentation)

You'll find the documentation here.

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

[](#installation)

You can install the package via composer:

```
composer require "abusalam/laravel-smsgateway"
```

The package will automatically register itself.

You can optionally publish the config file with:

```
php artisan vendor:publish --provider="AbuSalam\SmsGatewayServiceProvider" --tag="config"
```

This is the contents of the published config file:

```
return [

    /*
    |--------------------------------------------------------------------------
    | Default SMS Gateway Name
    |--------------------------------------------------------------------------
    |
    | Here you may specify which of the SMS Gateways below you wish
    | to use as your default SMS Gateway for sending SMSs. Of course
    | you may use many connections at once using the SMS Gateway library.
    |
    */
    'default' => env('SMS_GATEWAY', 'local'),

    /*
    |--------------------------------------------------------------------------
    | SMS Gateways
    |--------------------------------------------------------------------------
    |
    | Here are each of the SMS Gateways setup for your application.
    | Of course, examples of configuring each SMS Gateway platform that is
    | supported by Laravel is shown below to make development simple.
    |
    |
    | All SMS Gateway work in Laravel is done through the PHP SMS facilities
    | so make sure you have the driver for your particular SMS Gateway of
    | choice installed on your machine before you begin development.
    |
    */

    /*=============================================================
    =            Default SMS Gateway API Configuration            =
    =============================================================*/
    'cdacSms' => [
        /* SMS Gateway API Endpoint Configurations */
        'apiEndpoint'       => env('SMS_URL', 'https://msdgweb.mgov.gov.in/esms/sendsmsrequestDLT'),
        'apiMobileNoParam'  => env('SMS_MOBILE_NO_PARAM', 'mobileno'),
        'apiSmsParam'       => env('SMS_SMS_PARAM', 'content'),
        /* SMS Gateway Constant Parameter Configurations */
        'apiParams'         => [
            'apiUserParam'        => env('SMS_USERNAME_PARAM', 'username'),
            'apiPassParam'        => env('SMS_PASSWORD_PARAM', 'password'),
            'apiSenderIdParam'    => env('SMS_SENDER_ID_PARAM', 'senderid'),
            'apiTemplateIdParam'  => env('SMS_TEMPLATE_ID_PARAM', 'templateid'),
            'apiSecureKeyParam'   => env('SMS_API_KEY_PARAM', 'key'),
            'apiServiceTypeParam' => env('SMS_SERVICE_TYPE_PARAM', 'smsservicetype'),
        ],
        'apiValues'     => [
            'apiUser'        => env('SMS_USERNAME', 'dummyuser'),
            'apiPass'        => sha1(trim(env('SMS_PASSWORD', 'dummypass'))),
            'apiSenderId'    => env('SMS_SENDER_ID', 'DUMMY'),
            'apiTemplateId'  => env('SMS_TEMPLATE_ID', '01235468238656'),
            'apiSecureKey'   => env('SMS_API_KEY', 'top-secret-dummy-key'),
            'apiServiceType' => env('SMS_SERVICE_TYPE_PARAM', 'singlemsg'),
        ]
    ],
    /*=====  End of Default SMS Gateway API Configuration  ======*/

    'local' => [
        /* SMS Gateway API Endpoint Configurations */
        'apiEndpoint'       => 'http://insp.local.host/api/sms',
        'apiMobileNoParam'  => 'recipient',
        'apiSmsParam'       => 'sms',
        /* SMS Gateway Parameter Configurations */
        'apiParams'         => [
            'apiUserParam'      => env('SMS_USERNAME_PARAM', 'username'),
            'apiPassParam'      => env('SMS_PASSWORD_PARAM', 'password'),
            'apiSenderIdParam'  => env('SMS_SENDER_ID_PARAM', 'senderid'),
            'apiSecureKeyParam' => env('SMS_API_KEY_PARAM', 'key'),
        ],
        'apiValues'     => [
            'apiUser'       => env('SMS_USERNAME', 'dummyuser'),
            'apiPass'       => sha1(trim(env('SMS_PASSWORD', 'dummypass'))),
            'apiSenderId'   => env('SMS_SENDER_ID', 'DUMMY'),
            'apiSecureKey'  => env('SMS_API_KEY', 'top-secret-dummy-key'),
        ]
    ],
];
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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 ~203 days

Recently: every ~27 days

Total

10

Last Release

952d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/476e31e3dfb38223b2542c504a8325b12ff6a888d5b09ce3dbea0a1befb62a41?d=identicon)[abusalam](/maintainers/abusalam)

---

Top Contributors

[![abusalam](https://avatars.githubusercontent.com/u/2045095?v=4)](https://github.com/abusalam "abusalam (12 commits)")

### Embed Badge

![Health badge](/badges/abusalam-laravel-smsgateway/health.svg)

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

PHPackages © 2026

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