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

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

djunehor/laravel-sms
====================

Send SMS from your laravel application

2.2.0(5y ago)385.3k↓50%20[1 PRs](https://github.com/djunehor/laravel-sms/pulls)1MITPHPPHP &gt;=7.1

Since Nov 27Pushed 4y ago1 watchersCompare

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

READMEChangelog (7)Dependencies (3)Versions (11)Used By (1)

Laravel SMS
===========

[](#laravel-sms)

[![CircleCI](https://camo.githubusercontent.com/f2f0b71d37b98b89d75b94368c145b267361a191c13bc7ef8f260ddd35a94b0b/68747470733a2f2f636972636c6563692e636f6d2f67682f646a756e65686f722f6c61726176656c2d736d732e7376673f7374796c653d737667)](https://circleci.com/gh/djunehor/laravel-sms)[![Latest Stable Version](https://camo.githubusercontent.com/ad8339b06f0adbcb06923b06cdf4f3aee352cf94dd63cfaa7ed5925a96815506/68747470733a2f2f706f7365722e707567782e6f72672f646a756e65686f722f6c61726176656c2d736d732f762f737461626c65)](https://packagist.org/packages/djunehor/laravel-sms)[![Total Downloads](https://camo.githubusercontent.com/5de2ff80149b39a64c893a0a4f2e8a9c6fabeb2421e0fada81e1a2b6daf2f7ce/68747470733a2f2f706f7365722e707567782e6f72672f646a756e65686f722f6c61726176656c2d736d732f646f776e6c6f616473)](https://packagist.org/packages/djunehor/laravel-sms)[![License](https://camo.githubusercontent.com/19506ca1d714639d4cce12719e83f23c0a4cbf1489dd9f19569859a61f590f3e/68747470733a2f2f706f7365722e707567782e6f72672f646a756e65686f722f6c61726176656c2d736d732f6c6963656e7365)](https://packagist.org/packages/djunehor/laravel-sms)[![StyleCI](https://camo.githubusercontent.com/f9d5156a20fb3d7fb3fff6542f4f35b523116c8736703661f05f615f8ac3dede/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3232343339383435332f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/224398453)[![Build Status](https://camo.githubusercontent.com/30248aec899214d5434c1874bdfdfe8db8f98c791ab564bfcb34decaa1971d6e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646a756e65686f722f6c61726176656c2d736d732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/djunehor/laravel-sms/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9ae8b37c2b6c3f445f12cea86c44258187af914f1972e1b7f07ce7c706ec0c46/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646a756e65686f722f6c61726176656c2d736d732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/djunehor/laravel-sms/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/381f6372a47f3542866bffbae7d5b0d14c8eae5ab7b11539acbe9d0e1341122a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646a756e65686f722f6c61726176656c2d736d732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/djunehor/laravel-sms/?branch=master)

Laravel SMS allows you to send SMS from your Laravel application using one of over 10 sms providers, or your own sms provider.

- [Laravel SMS](#laravel-sms)
    - [Requirements](#requirements)
    - [Installation](#installation)
        - [Laravel 5.5 and above](#laravel-55-and-above)
        - [Laravel 5.4 and older](#laravel-54-and-older)
        - [Lumen](#lumen)
        - [Env Keys](#env-keys)
    - [Usage](#usage)
        - [Using Helper Function](#using-helper-function)
    - [Available SMS Providers](#available-sms-providers)
    - [Creating custom SMS Provider](#creating-custom-sms-provider)
    - [Contributing](#contributing)

Requirements
------------

[](#requirements)

- PHP &gt;=7.1

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

[](#installation)

### Step 1

[](#step-1)

You can install the package via composer:

```
composer require djunehor/laravel-sms
```

#### Laravel 5.5 and above

[](#laravel-55-and-above)

The package will automatically register itself, so you can start using it immediately.

#### Laravel 5.4 and older

[](#laravel-54-and-older)

In Laravel version 5.4 and older, you have to add the service provider in `config/app.php` file manually:

```
'providers' => [
    // ...
    Djunehor\Sms\SmsServiceProvider::class,
];
```

#### Lumen

[](#lumen)

After installing the package, you will have to register it in `bootstrap/app.php` file manually:

```
// Register Service Providers
    // ...
    $app->register(Djunehor\Sms\SmsServiceProvider::class);
];
```

#### Env Keys

[](#env-keys)

```
SMS_SENDER=

BETASMS_USERNAME=
BETASMS_PASSWORD=

BULK_SMS_NIGERIA_TOKEN=
BULK_SMS_NIGERIA_DND=

GOLD_SMS_247_USERNAME=
GOLD_SMS_247_PASSWORD=

MULTITEXTER_USERNAME=
MULTITEXTER_PASSWORD=

SMART_SMS_TOKEN=

XWIRELESS_API_KEY=
XWIRELESS_CLIENT_ID=

NEXMO_API_KEY=
NEXMO_API_SECRET=

RING_CAPTCHA_APP_KEY=
RING_CAPTCHA_API_KEY=
RING_CAPTCHA_APP_SECRET=

AFRICASTALKING_API_KEY=
AFRICASTALKING_USERNAME=

NIGERIAN_BULK_SMS_USERNAME=
NIGERIAN_BULK_SMS_PASSWORD=

KUDI_SMS_USERNAME=
KUDI_SMS_PASSWORD=

MEBO_SMS_API_KEY=

SMSLIVE247_TOKEN=

INFOBIP_BASE_URL=
INFOBIP_USERNAME=
INFOBIP_PASSWORD=
```

### Step 2 - Publishing files

[](#step-2---publishing-files)

Run: `php artisan vendor:publish --tag=laravel-sms`This will move the migration file, seeder file and config file to your app. You can set your sms details in the config file or via env

### Step 3 - Adding SMS credentials

[](#step-3---adding-sms-credentials)

- Add the env keys to your `.env` file
- Or edit the config/laravel-sms.php file

Usage
-----

[](#usage)

```
//using betaSMS
use Djunehor\Sms\BetaSms;

$sms = new BetaSms();
$sms->text($message)->to(08135087966)->from('MyLaravel')->send();
//returns true if everything went fine. Or false if error occured.
//You can get exception via getException() or get the server response via getResponse()
//exceptions will be logged in your laravel log file
```

### Using Helper function

[](#using-helper-function)

```
//MeboSms
$send = send_sms($message, $to, $from, MeboSms::class); //returns true/false
```

The default SMS provider is Nexmo. You can set the default SMS provider in `config/laravel-sms.php` e.g ` 'default' => \Djunehor\Sms\Concrete\SmartSmsSolutions::class,`, so you can use the helper function like this:

```
$send = send_sms($message, $to);
//$from is optional and is better set in the config
```

### Available SMS Providers

[](#available-sms-providers)

ProviderURLTestedNexmoYesAfricasTalkingYesBetaSmsYesMultiTexter[https://web.multitexter.com/MultiTexter\_HTTP\_SMS\_API%202.0.pdf](https://web.multitexter.com/MultiTexter_HTTP_SMS_API%202.0.pdf)YesBulkSmsNigeriaYesGoldSms247YesKudiSmsYesMebosmsYesNigerianBulkSmsYesSmartSmsSolutionsYesRingCaptchaNoSmsLive247[http://portal.smslive247.com/developer\_api/http.aspx](http://portal.smslive247.com/developer_api/http.aspx)NoXWirelessNoInfoBipNo> Note: For smartSmsSolutions, you have to whitelist the sender on the platform before using, else smartsms will automatically change your senderId when sending - [\#6](https://github.com/djunehor/laravel-sms/issues/6)

### Creating custom SMS Provider

[](#creating-custom-sms-provider)

- Create a class that extends `Djunehor\Sms\Concrete\Sms` class
- Implement the `send()` which makes the request and return bool
- (Optional) You can add the provider keys to the config/laravel-sms.php

Contributing
------------

[](#contributing)

- Fork this project
- Clone your forked repo
- Make your changes and run tests `composer test`
- Push and create Pull Request
- Make sure your PR passes all checks

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.5% 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 ~77 days

Recently: every ~115 days

Total

7

Last Release

1895d ago

Major Versions

0.1.1 → 1.0.02019-11-27

1.0.1 → 2.0.02019-11-28

PHP version history (5 changes)0.1.0PHP ~7.0|~7.2

0.1.1PHP ^7.0

1.0.1PHP ^7.0|~7.2

2.1.0PHP ^7.0|~7.2|~7.4

2.2.0PHP &gt;=7.1

### Community

Maintainers

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

---

Top Contributors

[![djunehor](https://avatars.githubusercontent.com/u/20708833?v=4)](https://github.com/djunehor "djunehor (38 commits)")[![kellslte](https://avatars.githubusercontent.com/u/29720486?v=4)](https://github.com/kellslte "kellslte (4 commits)")

---

Tags

phplaravellaravel-packagesmsdjunehor

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tzsk/sms

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

320244.3k6](/packages/tzsk-sms)[ferdous/laravel-otp-validate

Laravel package for OTP validation with built-in features like retry and resend mechanism. Built in max retry and max resend blocking. OTP/Security Code can be send over SMS or Email of your choice with user-defined template.

7124.4k](/packages/ferdous-laravel-otp-validate)[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)
