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

ActiveLibrary

dejwcake/laravel-sms
====================

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

3.0.0(4mo ago)0181MITPHPPHP ^8.4

Since Sep 23Pushed 4mo agoCompare

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

READMEChangelog (2)Dependencies (5)Versions (12)Used By (0)

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

[](#laravel-sms)

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

- `nexmo`
- `clockwork`
- `textlocal`
- `twilio`
- `O2SK`
- `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`

Fork note
---------

[](#fork-note)

This project is a fork of `Matthewbdaly\LaravelSMS`. It is maintained and improved by David Běhal (`DejwCake`).

Namespace change
----------------

[](#namespace-change)

The library namespace has been updated from `Matthewbdaly\LaravelSMS` to `DejwCake\LaravelSms`. Backward compatibility with the old namespace has been removed; please update your imports accordingly.

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 dejwcake/laravel-sms
```

Then publish the config file:

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

You will need to select the service provider `Dejwcake\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
O2_SK_API_KEY=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 DejwCake\SmsClient\Facades\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 `DejwCake\SmsClient\Contracts\Client`:

```
$msg = [
    'to'      => '+44 01234 567890',
    'content' => 'Just testing',
];
$sms = app()->make('DejwCake\SmsClient\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.

How to develop this project
---------------------------

[](#how-to-develop-this-project)

### Composer

[](#composer)

Update dependencies:

```
docker compose run --rm cli composer update
```

Composer normalization:

```
docker compose run --rm php-qa composer normalize
```

### Run tests

[](#run-tests)

Run tests with pcov:

```
docker compose run --rm test ./vendor/bin/phpunit -d pcov.enabled=1
```

### Run code analysis tools (php-qa)

[](#run-code-analysis-tools-php-qa)

PHP compatibility:

```
docker compose run --rm php-qa phpcs --standard=.phpcs.compatibility.xml --cache=.phpcs.cache
```

Code style:

```
docker compose run --rm php-qa phpcs -s --colors --extensions=php
```

Fix style issues:

```
docker compose run --rm php-qa phpcbf -s --colors --extensions=php
```

Static analysis (phpstan):

```
docker compose run --rm php-qa phpstan analyse --configuration=phpstan.neon
```

Mess detector (phpmd):

```
docker compose run --rm php-qa phpmd ./src,./tests ansi phpmd.xml --suffixes php --baseline-file phpmd.baseline.xml
```

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance73

Regular maintenance activity

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity87

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 98% 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 ~300 days

Recently: every ~311 days

Total

11

Last Release

149d ago

Major Versions

v1.x-dev → 2.0.02022-07-26

v2.x-dev → 3.0.02025-12-14

PHP version history (2 changes)2.0.0PHP ^8.1

3.0.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/7587c47435caa968be9a652630c6c0c91abacb43dfa001b02cbe5b892672cd7e?d=identicon)[dejwCake](/maintainers/dejwCake)

---

Top Contributors

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

---

Tags

laravellumensms

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tzsk/sms

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

320244.3k6](/packages/tzsk-sms)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

120220.7k1](/packages/ellaisys-aws-cognito)[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)[matthewbdaly/laravel-sms

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

3529.8k](/packages/matthewbdaly-laravel-sms)[ardakilic/mutlucell

Mutlucell SMS API wrapper for sending sms text messages for Laravel

457.3k](/packages/ardakilic-mutlucell)

PHPackages © 2026

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