PHPackages                             crafted-systems/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. [HTTP &amp; Networking](/categories/http)
4. /
5. crafted-systems/laravel-sms

ActiveLibrary[HTTP &amp; Networking](/categories/http)

crafted-systems/laravel-sms
===========================

A Laravel Package for Sending out SMS from multiple Gateways

v2.3(4mo ago)2425↓33.3%3MITPHP

Since Dec 14Pushed 4mo agoCompare

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

READMEChangelog (10)Dependencies (1)Versions (25)Used By (0)

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

[](#laravel-sms)

[![Latest Stable Version](https://camo.githubusercontent.com/677ae4836808745a60897a9e2f1915e29bd78ee558fead1d5ac5c1ef23165f40/68747470733a2f2f706f7365722e707567782e6f72672f637261667465642d73797374656d732f6c61726176656c2d736d732f762f737461626c65)](https://packagist.org/packages/crafted-systems/laravel-sms)[![Latest Unstable Version](https://camo.githubusercontent.com/48e674bedb0b466666aa043d4840585e5f1700eb00f0f848b4c7d2404117f193/68747470733a2f2f706f7365722e707567782e6f72672f637261667465642d73797374656d732f6c61726176656c2d736d732f762f756e737461626c65)](https://packagist.org/packages/crafted-systems/laravel-sms)[![StyleCI](https://camo.githubusercontent.com/ac444f87c65a1204e2814b2ef60ee2a67b245ceda29e6d001a733598f694343f/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3130373338313736322f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/107381762)[![Build Status](https://camo.githubusercontent.com/1b52d958a643ff1bde582fad0adaa53917f817bc4853c7a583ff87df431055ee/68747470733a2f2f7472617669732d63692e6f72672f637261667465642d73797374656d732f6c61726176656c2d736d732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/crafted-systems/laravel-sms)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/fd5372e389ee0ca2b0eba9eef80c43cfb8ebf7d994c5e063518609866efb6469/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f637261667465642d73797374656d732f6c61726176656c2d736d732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/crafted-systems/laravel-sms/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/38d0c6fae86da7568fbf0647e2ed813fac7d1f240fe2b98cea430e80c21b6c23/68747470733a2f2f706f7365722e707567782e6f72672f637261667465642d73797374656d732f6c61726176656c2d736d732f646f776e6c6f616473)](https://packagist.org/packages/crafted-systems/laravel-sms)[![License](https://camo.githubusercontent.com/dc7172969de540c160d893fcb22ea0114953295f29adbf160289f4879d57154c/68747470733a2f2f706f7365722e707567782e6f72672f637261667465642d73797374656d732f6c61726176656c2d736d732f6c6963656e7365)](https://packagist.org/packages/crafted-systems/laravel-sms)

This is a Laravel library meant to make it easier to send SMS and switch between multiple SMS Gateways.

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

[](#installation)

You can install the package via composer:

```
composer require crafted-systems/laravel-sms
```

The package will register itself automatically.

Then publish the package configuration file

```
php artisan vendor:publish --provider=CraftedSystems\\LaravelSMS\\SMSServiceProvider
```

Usage
-----

[](#usage)

The default gateway is [AfricasTalking](https://africastalking.com/)

Check the config file of all variables required, and then

```
(new SMS())->send('254712345678','Test SMS');
```

or using Facade

```
SMS::send('254712345678','Test SMS');
```

or using helper

```
sms()->send('254712345678','Test SMS');
```

Adding new Gateway
------------------

[](#adding-new-gateway)

use command

```
php artisan make:gateway MyGateway
```

A class `MyGateway.php` will be generated under `App/Gateways` folder.

The class extends the [SMSContract](https://github.com/crafted-systems/laravel-sms/blob/master/src/Contracts/SMSContract.php)

Remember to `map` your gateway in the sms config file.

### Changing Gateway

[](#changing-gateway)

Apart from declaring your default gateway on the sms config or env files, you can also change the gateway you want to use on the fly. e.g:

```
SMS::gateway('mygateway')->send('254712345678','Test SMS');
```

### Checking SMS balance

[](#checking-sms-balance)

```
SMS::getBalance();

//or

SMS::gateway('mygateway')->getBalance();
```

### Delivery Reports

[](#delivery-reports)

```
sms()->getDeliveryReports(Request $request);

//or

sms()->gateway('mygateway')->getDeliveryReports(Request $request);
```

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

[](#contributing)

Suggestions, pull requests , bug reporting and code improvements are all welcome. Feel free.

TODO
----

[](#todo)

Write Tests :-(

Credits
-------

[](#credits)

- [Vincent Mosoti](https://github.com/vmosoti)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance76

Regular maintenance activity

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity73

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

Recently: every ~630 days

Total

23

Last Release

131d ago

Major Versions

v1.0.19 → v2.0.02019-02-15

PHP version history (3 changes)v1.0.0PHP &gt;=7.0

v2.0.0PHP &gt;=7.1

v2.1PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/5bfe4c3ad381cdb2390a61370eb50969db196084c003fa7b32244969ed4c9901?d=identicon)[vmosoti](/maintainers/vmosoti)

---

Top Contributors

[![vmosoti](https://avatars.githubusercontent.com/u/1621619?v=4)](https://github.com/vmosoti "vmosoti (6 commits)")

---

Tags

laravelphpsmssms-apisms-gatewaysms-sdk

### Embed Badge

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

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

###  Alternatives

[danharrin/livewire-rate-limiting

Apply rate limiters to Laravel Livewire actions.

40423.1M27](/packages/danharrin-livewire-rate-limiting)[mateusjunges/laravel-kafka

A kafka driver for laravel

7163.1M17](/packages/mateusjunges-laravel-kafka)[illuminate/http

The Illuminate Http package.

11936.0M5.1k](/packages/illuminate-http)[ricorocks-digital-agency/soap

A SOAP client that provides a clean interface for handling requests and responses.

4281.8M5](/packages/ricorocks-digital-agency-soap)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[laravel-shift/curl-converter

A command line tool to convert curl requests to Laravel HTTP requests.

935.3k](/packages/laravel-shift-curl-converter)

PHPackages © 2026

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