PHPackages                             ayles-software/laravel-sms-messagemedia - 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. ayles-software/laravel-sms-messagemedia

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

ayles-software/laravel-sms-messagemedia
=======================================

ClickSend Notifications channel for Laravel 10

2.3.0(1y ago)11.2kMITPHPPHP ^8.3

Since Sep 7Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/ayles-software/laravel-sms-messagemedia)[ Packagist](https://packagist.org/packages/ayles-software/laravel-sms-messagemedia)[ Docs](https://github.com/parkourben99/laravel-sms-clicksend)[ RSS](/packages/ayles-software-laravel-sms-messagemedia/feed)WikiDiscussions main Synced 1mo ago

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

MessageMedia sms notifications channel for Laravel 10
=====================================================

[](#messagemedia-sms-notifications-channel-for-laravel-10)

This package makes it easy to send notifications using [messagemedia.com](//messagemedia.com) with Laravel 10.

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

[](#installation)

Install the package via composer:

```
composer require ayles-software/laravel-sms-messagemedia
```

When generating an API key in Message Media make sure to use the Basic Authentication type. **HMAC Auth is not supported**

Add your MessageMedia api key, secret and optional default sender sms\_from to your `config/services.php`:

```
'message_media' => [
    'key' => env('MESSAGE_MEDIA_KEY'),
    'secret'  => env('MESSAGE_MEDIA_SECRET'),
    'from' => env('MESSAGE_MEDIA_FROM'),
],
```

Usage
-----

[](#usage)

Use MessageMediaChannel in `via()` method inside your notification classes. Example:

```
namespace App\Notifications;

use Illuminate\Notifications\Notification;
use AylesSoftware\MessageMedia\MessageMediaChannel;
use AylesSoftware\MessageMedia\MessageMediaMessage;

class SmsTest extends Notification
{
    public function __construct(public string $token)
    {
    }

    public function via($notifiable)
    {
        return [MessageMediaChannel::class];
    }

    public function toMessageMedia($notifiable)
    {
        return (new MessageMediaMessage)
            ->message("SMS test to user #{$notifiable->id} with token {$this->token} by MessageMedia")
            ->from('Dory');

        // setting a delay when the sms should be sent
        return (new MessageMediaMessage)
            ->message("SMS test to user #{$notifiable->id} with token {$this->token} by MessageMedia")
            ->from('Dory')
            ->delay(now()->addHours(6));
    }
}
```

In notifiable model (User), include method `routeNotificationForMessageMedia()` that returns recipient mobile number:

```
public function routeNotificationForMessageMedia()
{
    return $this->phone;
}
```

Then send a notification the standard way:

```
$user = User::find(1);

$user->notify(new SmsTest);
```

Events
------

[](#events)

Following events are triggered by Notification. By default:

- Illuminate\\Notifications\\Events\\NotificationSending
- Illuminate\\Notifications\\Events\\NotificationSent

NotificationFailed will trigger if something goes wrong

- Illuminate\\Notifications\\Events\\NotificationFailed

Testing
-------

[](#testing)

Yes

License
-------

[](#license)

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

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance54

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity71

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

Recently: every ~317 days

Total

8

Last Release

437d ago

Major Versions

1.1.0 → 2.0.02023-11-13

PHP version history (3 changes)1.0.0PHP ^8.0

2.0.0PHP ^8.2

2.3.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/44064852e6895bec4fa6330fd0d6d2b3a1b2d8b3466f12ef717a2bf94c8fdfe0?d=identicon)[parkourben99](/maintainers/parkourben99)

---

Top Contributors

[![parkourben99](https://avatars.githubusercontent.com/u/7295774?v=4)](https://github.com/parkourben99 "parkourben99 (11 commits)")

---

Tags

laravelnotificationssmsmessagemedia

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/ayles-software-laravel-sms-messagemedia/health.svg)

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

###  Alternatives

[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[tzsk/sms

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

320244.3k6](/packages/tzsk-sms)[ghanem/laravel-smsmisr

Send SMS and SMS Notification via SMS Misr for Laravel

194.8k](/packages/ghanem-laravel-smsmisr)

PHPackages © 2026

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