PHPackages                             laravel-notification-channels/all-my-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. laravel-notification-channels/all-my-sms

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

laravel-notification-channels/all-my-sms
========================================

AllMySms Notifications driver for Laravel

v1.4.0(10mo ago)16.9k↓100%7[1 issues](https://github.com/laravel-notification-channels/all-my-sms/issues)MITPHPPHP &gt;=7.3

Since Oct 31Pushed 10mo ago1 watchersCompare

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

READMEChangelog (7)Dependencies (5)Versions (10)Used By (0)

AllMySms notifications channel for Laravel
==========================================

[](#allmysms-notifications-channel-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/99a9da9d8c6ed67df3ebd65b0435c7356b263761640d92b4bc0d31d99acaa679/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f616c6c2d6d792d736d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/all-my-sms)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/dcb03413b4bf677c673af952a13bbc7f31a2ca631b9551423fc014b9193722eb/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f616c6c2d6d792d736d732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/laravel-notification-channels/all-my-sms)[![StyleCI](https://camo.githubusercontent.com/19e3001675bc80a91f5bf09c626f3bcc60aa7b68096c37260a1217148193c26f/68747470733a2f2f7374796c6563692e696f2f7265706f732f3231373835343435352f736869656c64)](https://styleci.io/repos/217854455)[![Quality Score](https://camo.githubusercontent.com/14f028e3320658f4624d75902154d6dd18272823e65bf2cf2c493d36e08b37d4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f616c6c2d6d792d736d732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/all-my-sms)[![Code Coverage](https://camo.githubusercontent.com/781fc3d504f835621135285eebd0d9f65cd47ffe163747ab55cc83e872e74799/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f616c6c2d6d792d736d732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/all-my-sms/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/009998a73085fd0551a64f6c34c9e1c9802fde0a30ed87757efb414ab95587d1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f616c6c2d6d792d736d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/all-my-sms)

This package makes it easy to send notifications using [AllMySms](https://www.allmysms.com/) with Laravel 5.5+, 6.x and 7.x.

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the AllMySms service](#setting-up-the-AllMySms-service)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install the package via composer:

```
composer require laravel-notification-channels/all-my-sms
```

### Setting up the AllMySms service

[](#setting-up-the-allmysms-service)

Add the following code to you `config/services.php`:

```
// config/services.php
...
'all_my_sms' => [
    'uri' => env('ALL_MY_SMS_URI', 'https://api.allmysms.com/http/9.0'),
    'login' => env('ALL_MY_SMS_LOGIN'),
    'api_key' => env('ALL_MY_SMS_API_KEY'),
    'format' => env('ALL_MY_SMS_FORMAT', 'json'),
    'sender' => env('ALL_MY_SMS_SENDER'),
    'universal_to' => env('ALL_MY_SMS_UNIVERSAL_TO'),
],
...
```

Usage
-----

[](#usage)

Now you can use the channel in your `via()` method inside the notification:

```
use NotificationChannels\AllMySms\AllMySmsChannel;
use NotificationChannels\AllMySms\AllMySmsMessage;
use Illuminate\Notifications\Notification;

class ProjectCreated extends Notification
{
    public function via($notifiable)
    {
        return [AllMySmsChannel::class]; // or 'all_my_sms'
    }

    public function toAllMySms($notifiable)
    {
        return new AllMySmsMessage('Content');
    }
}
```

In order to let your Notification know which phone number to use, add the `routeNotificationForAllMySms` method to your Notifiable model.

This method needs to return a phone number.

```
public function routeNotificationForAllMySms(Notification $notification)
{
    return $this->phone_number;
}
```

### Local development

[](#local-development)

When developing an application that sends sms, you probably don't want to actually send sms to live phone numbers. You may set a universal recipient of all sms sent. This can be done by the `ALL_MY_SMS_UNIVERSAL_TO` environment variable or the `universal_to` option.

### Available Message methods

[](#available-message-methods)

- `content(string $content)`: Accepts a string value for the sms content.
- `sender(string $sender)`: Accepts a string value for the sender name.
- `campaign(string $campaign)`: Accepts a string value for the sms campaign name.
- `sendAt(\DateTimeInterface|string $sendAt)`: Accepts a DateTimeInterface or string for the sms due date.
- `parameters(array $parameters)`: Accepts an array for the sms parameters.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Mikaël Popowicz](https://github.com/mikaelpopowicz)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.6% 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 ~343 days

Recently: every ~482 days

Total

7

Last Release

327d ago

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

v1.0.2PHP &gt;=7.2.5

v1.2.0PHP &gt;=7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20937037?v=4)[Laravel Notification Channels](/maintainers/laravel-notification-channels)[@laravel-notification-channels](https://github.com/laravel-notification-channels)

---

Top Contributors

[![mikaelpopowicz](https://avatars.githubusercontent.com/u/5689944?v=4)](https://github.com/mikaelpopowicz "mikaelpopowicz (10 commits)")[![atymic](https://avatars.githubusercontent.com/u/50683531?v=4)](https://github.com/atymic "atymic (4 commits)")[![pierrick-srpweb](https://avatars.githubusercontent.com/u/198988241?v=4)](https://github.com/pierrick-srpweb "pierrick-srpweb (2 commits)")[![ankheur](https://avatars.githubusercontent.com/u/10383857?v=4)](https://github.com/ankheur "ankheur (1 commits)")[![pavasseur-bbs](https://avatars.githubusercontent.com/u/215831440?v=4)](https://github.com/pavasseur-bbs "pavasseur-bbs (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laravel-notification-channels-all-my-sms/health.svg)

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

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/fcm

FCM (Firebase Cloud Messaging) Notifications Driver for Laravel

5917.0M16](/packages/laravel-notification-channels-fcm)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[laravel-notification-channels/aws-sns

Amazon Simple Notification Service (AWS SNS) notification channel for Laravel.

541.1M2](/packages/laravel-notification-channels-aws-sns)

PHPackages © 2026

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