PHPackages                             laravel-notification-channels/messagebird - 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/messagebird

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

laravel-notification-channels/messagebird
=========================================

MessageBird notification channel for Laravel 5.x

v4.3.0(1y ago)22917.4k↑22%27[2 issues](https://github.com/laravel-notification-channels/messagebird/issues)[1 PRs](https://github.com/laravel-notification-channels/messagebird/pulls)3MITPHPPHP ^8.0|^8.1

Since Aug 15Pushed 1y ago2 watchersCompare

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

READMEChangelog (10)Dependencies (6)Versions (13)Used By (3)

Messagebird notifications channel for Laravel
=============================================

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/7343313bbba0bbfeb096e881be60241cabe09e609f3542edb2b9e338b2abf92b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6d657373616765626972642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/messagebird)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/79750b1edc706fe7e1598e3e75b3cdf88adf389aca117fd552d5319315769058/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6d657373616765626972642f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/laravel-notification-channels/messagebird)[![StyleCI](https://camo.githubusercontent.com/7774a22966f50e4e319fbec28aea541018002cb73a20ab594ac08b6adc96ff37/68747470733a2f2f7374796c6563692e696f2f7265706f732f36353638333634392f736869656c64)](https://styleci.io/repos/65683649)[![SensioLabsInsight](https://camo.githubusercontent.com/88da91189fecdb5543d49d35c80b72a29f39e04bee1514eaf7e949edc5a8c874/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f33353762623864332d323136332d343562652d393766322d6365373134333461343337392e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/357bb8d3-2163-45be-97f2-ce71434a4379)[![Quality Score](https://camo.githubusercontent.com/956fe7af8e6ae7cd679d56ffa0f658e9b655ad7e4cf49ba92885ebdac1613eb3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6d657373616765626972642e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/messagebird)[![Code Coverage](https://camo.githubusercontent.com/767e525e82fa5004317d8a4bd451f5db257b75f2c98cdaf22c1c76a45751f59c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6d657373616765626972642f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/messagebird/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/b624fa6d2984710d6de4f24579218b68c56d74f8f28cf4132963e2b8c50c0f5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f6d657373616765626972642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/messagebird)

This package makes it easy to send [Messagebird SMS notifications](https://github.com/messagebird/php-rest-api) with Laravel.

Contents
--------

[](#contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Setting up your Messagebird account](#setting-up-your-messagebird-account)
- [Usage](#usage)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

Requirements
------------

[](#requirements)

- [Sign up](https://www.messagebird.com/en/signup) for a free MessageBird account
- Create a new access\_key in the developers sections

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

[](#installation)

You can install the package via composer:

```
composer require laravel-notification-channels/messagebird
```

for Laravel 5.4 or lower, you must add the service provider to your config:

```
// config/app.php
'providers' => [
    ...
    NotificationChannels\Messagebird\MessagebirdServiceProvider::class,
],
```

Setting up your Messagebird account
-----------------------------------

[](#setting-up-your-messagebird-account)

Add the environment variables to your `config/services.php`:

```
// config/services.php
...
'messagebird' => [
    'access_key' => env('MESSAGEBIRD_ACCESS_KEY'),
    'originator' => env('MESSAGEBIRD_ORIGINATOR'),
    'recipients' => env('MESSAGEBIRD_RECIPIENTS'),
],
...
```

Add your Messagebird Access Key, Default originator (name or number of sender), and default recipients to your `.env`:

```
// .env
...
MESSAGEBIRD_ACCESS_KEY=
MESSAGEBIRD_ORIGINATOR=
MESSAGEBIRD_RECIPIENTS=
],
...
```

Notice: The originator can contain a maximum of 11 alfa-numeric characters.

Usage
-----

[](#usage)

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

```
use NotificationChannels\Messagebird\MessagebirdChannel;
use NotificationChannels\Messagebird\MessagebirdMessage;
use Illuminate\Notifications\Notification;

class VpsServerOrdered extends Notification
{
    public function via($notifiable)
    {
        return [MessagebirdChannel::class];
    }

    public function toMessagebird($notifiable)
    {
        return (new MessagebirdMessage("Your {$notifiable->service} was ordered!"));
    }
}
```

Additionally you can add recipients (single value or array)

```
return (new MessagebirdMessage("Your {$notifiable->service} was ordered!"))->setRecipients($recipients);
```

In order to handle a status report you can also set a reference

```
return (new MessagebirdMessage("Your {$notifiable->service} was ordered!"))->setReference($id);
```

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)

- [Peter Steenbergen](https://3ws.nl)
- [Tonko Mulder](https://tonkomulder.nl)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance43

Moderate activity, may be stable

Popularity51

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 51.9% 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 ~284 days

Recently: every ~273 days

Total

12

Last Release

433d ago

Major Versions

0.0.1 → v1.0.02016-08-27

1.0.2 → v2.0.02019-08-28

v2.1.0 → v3.0.02020-09-18

v3.0.0 → v4.0.02022-03-17

PHP version history (3 changes)0.0.1PHP &gt;=5.6.4

v4.0.0PHP ^8.1

v4.0.1PHP ^8.0|^8.1

### 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

[![petericebear](https://avatars.githubusercontent.com/u/339796?v=4)](https://github.com/petericebear "petericebear (41 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (8 commits)")[![SudoGetBeer](https://avatars.githubusercontent.com/u/7324694?v=4)](https://github.com/SudoGetBeer "SudoGetBeer (5 commits)")[![JeroenVanOort](https://avatars.githubusercontent.com/u/5616838?v=4)](https://github.com/JeroenVanOort "JeroenVanOort (5 commits)")[![klaasgeldof](https://avatars.githubusercontent.com/u/35819?v=4)](https://github.com/klaasgeldof "klaasgeldof (4 commits)")[![evrard-c](https://avatars.githubusercontent.com/u/23173851?v=4)](https://github.com/evrard-c "evrard-c (2 commits)")[![ricardovanlaarhoven](https://avatars.githubusercontent.com/u/1246691?v=4)](https://github.com/ricardovanlaarhoven "ricardovanlaarhoven (2 commits)")[![chrispage1](https://avatars.githubusercontent.com/u/2487374?v=4)](https://github.com/chrispage1 "chrispage1 (2 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")[![Treggats](https://avatars.githubusercontent.com/u/27585?v=4)](https://github.com/Treggats "Treggats (1 commits)")[![casperboone](https://avatars.githubusercontent.com/u/15815208?v=4)](https://github.com/casperboone "casperboone (1 commits)")[![jetwes](https://avatars.githubusercontent.com/u/1346373?v=4)](https://github.com/jetwes "jetwes (1 commits)")[![laemol](https://avatars.githubusercontent.com/u/3026444?v=4)](https://github.com/laemol "laemol (1 commits)")[![LasseRafn](https://avatars.githubusercontent.com/u/2689341?v=4)](https://github.com/LasseRafn "LasseRafn (1 commits)")[![oyed](https://avatars.githubusercontent.com/u/172114265?v=4)](https://github.com/oyed "oyed (1 commits)")[![themsaid](https://avatars.githubusercontent.com/u/4332182?v=4)](https://github.com/themsaid "themsaid (1 commits)")[![arjendejong12](https://avatars.githubusercontent.com/u/10572554?v=4)](https://github.com/arjendejong12 "arjendejong12 (1 commits)")

---

Tags

laravellaravel-notification-channelsmessagebird

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

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

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[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/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

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

PHPackages © 2026

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