PHPackages                             iyngaran/sms-gateway - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. iyngaran/sms-gateway

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

iyngaran/sms-gateway
====================

It is a Laravel package which will serve as gateway to send SMS through various providers. It supports multiple sms gateways, and easily extendable to support new gateways.

1.0.6(7y ago)117233MITPHP

Since Mar 22Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (6)Used By (0)

Laravel SMS gateway
===================

[](#laravel-sms-gateway)

[![Latest Stable Version](https://camo.githubusercontent.com/4781b779b25d666de0adc6c3e578f04118eb21aa501382c3182caa45142c48e9/68747470733a2f2f706f7365722e707567782e6f72672f69796e676172616e2f736d732d676174657761792f762f737461626c65)](https://packagist.org/packages/iyngaran/sms-gateway)[![Total Downloads](https://camo.githubusercontent.com/f9f2c7f43eddb9079251906af27e230ec35a22d44ad2d5695693e42821a0f86b/68747470733a2f2f706f7365722e707567782e6f72672f69796e676172616e2f736d732d676174657761792f646f776e6c6f616473)](https://packagist.org/packages/iyngaran/sms-gateway)[![Latest Unstable Version](https://camo.githubusercontent.com/d2216cb4ad733ba036409ad28b6f5bb3d8230d6ae7d7b53d77c3d88c5bf8f94f/68747470733a2f2f706f7365722e707567782e6f72672f69796e676172616e2f736d732d676174657761792f762f756e737461626c65)](https://packagist.org/packages/iyngaran/sms-gateway)[![License](https://camo.githubusercontent.com/11475b0585e0c7cfc70eedbbcfd2c9e8124d52ed5369660932c7ce0455dced89/68747470733a2f2f706f7365722e707567782e6f72672f69796e676172616e2f736d732d676174657761792f6c6963656e7365)](https://packagist.org/packages/iyngaran/sms-gateway)

It is a Laravel package which will serve as gateway to send SMS through various providers. It supports multiple sms gateways, and easily extendable to support new gateways.

INSTALLING
----------

[](#installing)

`composer require iyngaran/sms-gateway`

After install follow one of these steps:

1. Run the command `php artisan vendor:publish` to publish the extension. It will also copy the `sms_gateway.php`into the config folder of your laravel application.
2. If the `sms_gateway.php` file does not exists in your application config folder, just copy the entire file and place into your `config/` folder.

Then add your `NEXMO_API_KEY,NEXMO_API_SECRET and NEXMO_SMS_FROM` Key. To get your API Key, [please visit](https://developer.nexmo.com/)

```
// config/sms_gateway.php

return [
    'nexmo_sms_api_settings' => [
        'API_KEY' => env('NEXMO_API_KEY', ''),
        'API_SECRET' => env('NEXMO_API_SECRET', ''),
        'SEND_SMS_FROM' => env('NEXMO_SMS_FROM', 'IYNGARAN'),
    ],
    'twilio_sms_api_settings' => [
        'SID' => env('TWILIO_SID', ''),
        'TOKEN' => env('TWILIO_TOKEN', ''),
        'SEND_SMS_FROM' => env('TWILIO_SMS_FROM', '+12012926824'),
    ],
    'message_bird_sms_api_settings' => [
        'API_KEY' => env('MESSAGE_BIRD_API_KEY', ''),
        'SEND_SMS_FROM' => env('MESSAGE_BIRD_SMS_FROM', '+12012926824'),
    ],
    'dialog_sms_api_settings' => [
         'API_KEY' => env('DIALOG_SMS_API_KEY', ''),
         'ENDPOINT' => env('DIALOG_SMS_ENDPOINT', ''),
         'SEND_SMS_FROM' => env('DIALOG_SMS_FROM', 'IYNGARAN'),
    ],
];
```

USAGE
-----

[](#usage)

[![](https://camo.githubusercontent.com/ce4f6157becc0476c826fa59e5433c56305ce881aedecb860c866b2313198302/68747470733a2f2f7777772e6e65786d6f2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30362f6e65786d6f2d6c6f676f2d6c672e6a7067 "Nexmo")](https://www.nexmo.com/)### Nexmo

[](#nexmo)

Nexmo provides innovative communication SMS and Voice APIs that enable applications and enterprises to easily connect to their customers.

Website : [www.nexmo.com](https://www.nexmo.com/)

Developer Documentation: [developer.nexmo.com](https://developer.nexmo.com/)

To send sms using Nexmo API, you need to get the API KEY and API SECRET from Nexmo.

When initially subscribing to Nexmo 2 EUR free test credit is granted for testing your application.

#### Nexmo Configuration

[](#nexmo-configuration)

Open the config file `config/sms_gateway.php` and add your `API KEY` and `API SECRET` to the following section of the configuration file.

```
'nexmo_sms_api_settings' => [
        'API_KEY' => env('NEXMO_API_KEY', ''),
        'API_SECRET' => env('NEXMO_API_SECRET', ''),
        'SEND_SMS_FROM' => env('NEXMO_SMS_FROM', 'IYNGARAN'),
],
```

#### Sending SMS - Nexmo

[](#sending-sms---nexmo)

Use the following code to send SMS.

```
    $objSMS = new SmsGateway(new NexmoSmsGateway());
    $response = $objSMS->sendSms('+12012926822','Hello Nexmo');
```

[![](https://camo.githubusercontent.com/6f572ca32c3f07a61460a79022df4211741e27038b0285f721d8ddf95b66c946/68747470733a2f2f7777772e7477696c696f2e636f6d2f6d61726b6574696e672f62756e646c65732f636f6d70616e792f696d672f6c6f676f732f7265642f7477696c696f2d6c6f676f2d7265642e737667 "Twilio")](https://www.twilio.com/)### Twilio

[](#twilio)

Twilio allows software developers to programmatically make and receive phone calls, send and receive text messages, and perform other communication functions using its web service APIs.

Website : [twilio.com](https://www.twilio.com/)

Developer Documentation: [Twilio API](https://www.twilio.com/docs/api)

To send sms using Twilio API, you need to get the `SID` and `TOKEN` from Twilio.

When initially subscribing to Twilio $15.50 free test credit is granted for testing your application.

#### Twilio Configuration

[](#twilio-configuration)

Open the config file `config/sms_gateway.php` and add your `SID` and `TOKEN` to the following section of the configuration file.

```
twilio_sms_api_settings' => [
        'SID' => env('TWILIO_SID', ''),
        'TOKEN' => env('TWILIO_TOKEN', ''),
        'SEND_SMS_FROM' => env('TWILIO_SMS_FROM', '+12012926824'),
]
```

#### Sending SMS - Twilio

[](#sending-sms---twilio)

Use the following code to send SMS.

```
    $objSMST = new SmsGateway(new TwilioSmsGateway());
    $response = $objSMST->sendSms('+12012926822','Hello Twilio');
```

[![](https://camo.githubusercontent.com/84d7f3ad5daedef2d267c1bf61189984321d0e3508a770aa42dd34b6ceb7245d/68747470733a2f2f7777772e6d657373616765626972642e636f6d2f696d672f6c6f676f2e737667 "Dialog (Sri Lanka)")](https://www.messagebird.com/en/)### MessageBird

[](#messagebird)

MessageBird is a powerful communication APIs and technical resources to help you build your communication solution.

Website : [messagebird.com](https://www.messagebird.com/en/)

Developer Documentation: [developers.messagebird.com](https://developers.messagebird.com/)

To send sms using MessageBird API, you need to get the `API KEY` from MessageBird.

When initially subscribing to MessageBird 10 free SMS credit is granted for testing your application on live.

#### MessageBird Configuration

[](#messagebird-configuration)

Open the config file `config/sms_gateway.php` and add your `API_KEY` to the following section of the configuration file.

```
'message_bird_sms_api_settings' => [
        'API_KEY' => env('MESSAGE_BIRD_API_KEY', ''),
        'SEND_SMS_FROM' => env('MESSAGE_BIRD_SMS_FROM', '+12012926824'),
 ]
```

#### Sending SMS - MessageBird

[](#sending-sms---messagebird)

Use the following code to send SMS.

```
    $objSMST = new SmsGateway(new MessageBirdSmsGateway());
    $response = $objSMST->sendSms('+12012926822','Hello MessageBird');
```

[![](https://camo.githubusercontent.com/2df2136682ca4ce4cb0f533e322ffcfdcfcd87d0cc650e25d3589d2c0ea16cc4/68747470733a2f2f7777772e6469616c6f672e6c6b2f6469616c6f67646f63726f6f742f636f6e74656e742f696d616765732f6469616c6f675f6c6f676f4032782e706e67 "Dialog (Sri Lanka)")](https://www.dialog.lk/)### Dialog (Sri Lanka)

[](#dialog-sri-lanka)

Dialog Axiata PLC has hence combined its innovativeness and technical superiority to bring out a solution that will enable you to tap into this opportunity by introducing Dialog Bulk SMS Solution which will enable you to communicate by SMS to a mass list of customers/staff through an easy to use web portal that can also be accessed from any location.

Website : [dialog.lk](https://www.dialog.lk/)

To send sms using Dialog SMS API, you need to get the `API KEY` from Dialog.

#### Dialog Configuration

[](#dialog-configuration)

Open the config file `config/sms_gateway.php` and add your `API_KEY` to the following section of the configuration file.

```
'dialog_sms_api_settings' => [
        'API_KEY' => env('DIALOG_SMS_API_KEY', ''),
        'ENDPOINT' => env('DIALOG_SMS_ENDPOINT', ''),
        'SEND_SMS_FROM' => env('DIALOG_SMS_FROM', 'IYNGARAN'),
    ]
```

#### Sending SMS - Dialog

[](#sending-sms---dialog)

Use the following code to send SMS.

```
    $objSMS = new SmsGateway(new DialogSmsGateway());
    $response = $objSMS->sendSms('+12012926822','Hello, from Dialog SMS');
```

CONTRIBUTING
------------

[](#contributing)

You can contribute with this module suggesting improvements, making tests and reporting bugs. Use [issues](https://github.com/iyngaran/sms-gateway/issues) for that.

ERRORS
------

[](#errors)

Report errors opening [Issues](https://github.com/iyngaran/laravel-sms-gateway/issues).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Total

4

Last Release

2596d ago

Major Versions

0.0.1 → 1.0.02019-03-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/356a3abaef062d77ca1085716fef809cabdabf9b8908eb3e400712eb924cde1f?d=identicon)[iyngaran](/maintainers/iyngaran)

---

Tags

dialog-smslaravellaravel-sms-gatewaymessagebirdnexmophpsms-gatewaytwiliolaraveltwilionexmolaravel sms gatewaymessagebird

### Embed Badge

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

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

###  Alternatives

[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[tzsk/sms

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

320244.3k6](/packages/tzsk-sms)[simplesoftwareio/simple-sms

Simple-SMS is a package made for Laravel to send/receive (polling/pushing) text messages. Currently supports CalLFire, EZTexting, Email Gateways, FlowRoute, LabsMobile, Mozeo, Nexmo, Plivo, Twilio, and Zenvia

20845.7k5](/packages/simplesoftwareio-simple-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)[botman/driver-twilio

Twilio driver for BotMan

1227.7k2](/packages/botman-driver-twilio)[mrabbani/laravel_infobip

Simple-SMS is a package made for Laravel to send/receive (polling/pushing) text messages. Currently supports CallFire, EZTexting, Email Gateways, Mozeo, and Twilio.

112.9k](/packages/mrabbani-laravel-infobip)

PHPackages © 2026

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