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

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

matthewbdaly/laravel-sms
========================

A Laravel and Lumen integration for matthewbdaly/sms-client to enable sending SMS messages

1.0.5(8y ago)3529.8k11MITPHP

Since Sep 23Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (7)Versions (7)Used By (0)

laravel-sms
===========

[](#laravel-sms)

[![Build Status](https://camo.githubusercontent.com/53ea50aea805056ebb26f449bceb664b4f3a836908f5fab73dc19eb4ae2a67a2/68747470733a2f2f7472617669732d63692e6f72672f6d6174746865776264616c792f6c61726176656c2d736d732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/matthewbdaly/laravel-sms)

SMS service provider for Laravel and Lumen. Uses [SMS Client](https://github.com/matthewbdaly/sms-client) to enable sending SMS messages using the following drivers:

- `nexmo`
- `clockwork`
- `textlocal`
- `twilio`
- `aws` (requires installation of `aws/aws-sdk-php`)
- `mail` (somewhat untested and may be too generic to be much use)

Also has the following drivers for testing purposes:

- `log`
- `null`
- `requestbin`

Installation for Laravel
------------------------

[](#installation-for-laravel)

This package is only intended for Laravel 5.5 and up. Install it with the following command:

```
$ composer require matthewbdaly/laravel-sms
```

Then publish the config file:

```
$ php artisan vendor:publish
```

You will need to select the service provider `Matthewbdaly\LaravelSMS\LaravelSMSProvider`. Then set your driver and any settings required in the `.env` file for your project:

```
SMS_DRIVER=nexmo
NEXMO_API_KEY=foo
NEXMO_API_SECRET=bar
CLOCKWORK_API_KEY=baz
TEXTLOCAL_API_KEY=baz
REQUESTBIN_PATH=foo
AWS_SNS_API_KEY=foo
AWS_SNS_API_SECRET=bar
AWS_SNS_API_REGION=baz
MAIL_SMS_DOMAIN=my.sms-gateway.com
TWILIO_ACCOUNT_ID=foo
TWILIO_API_TOKEN=bar

```

Installation for Lumen
----------------------

[](#installation-for-lumen)

The installation process with Lumen is identical to that for Laravel, although if you wish to use the facade you will need to uncomment the appropriate section of `bootstrap/app.php` as usual.

Usage
-----

[](#usage)

Once the package is installed and configured, you can use the facade to send SMS messages:

```
use SMS;

$msg = [
    'to'      => '+44 01234 567890',
    'content' => 'Just testing',
];
SMS::send($msg);
```

Or fetch it from the app:

```
$msg = [
    'to'      => '+44 01234 567890',
    'content' => 'Just testing',
];
$sms = app()['sms']
$sms->send($msg);
```

Or resolve the interface `Matthewbdaly\SMS\Contracts\Client`:

```
$msg = [
    'to'      => '+44 01234 567890',
    'content' => 'Just testing',
];
$sms = app()->make('Matthewbdaly\SMS\Contracts\Client');
$sms->send($msg);
```

Here we use the `app()` helper, but you'll normally want to inject it into a constructor or method of another class.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

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

Total

6

Last Release

3105d ago

### Community

Maintainers

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

---

Top Contributors

[![matthewbdaly](https://avatars.githubusercontent.com/u/450801?v=4)](https://github.com/matthewbdaly "matthewbdaly (50 commits)")

---

Tags

laravelphpsmslaravellumensms

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[tzsk/sms

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

320244.3k6](/packages/tzsk-sms)[ipecompany/smsirlaravel

Official Sms.ir Laravel Package

1810.3k1](/packages/ipecompany-smsirlaravel)

PHPackages © 2026

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