PHPackages                             astrotomic/notifynder-sender-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. astrotomic/notifynder-sender-messagebird

Abandoned → [laravel-notification-channels/messagebird](/?search=laravel-notification-channels%2Fmessagebird)ArchivedLibrary[Mail &amp; Notifications](/categories/mail)

astrotomic/notifynder-sender-messagebird
========================================

MessageBird Sender for the Notifynder package.

1.2.0(9y ago)211MITPHPPHP &gt;=5.5.0

Since Jan 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Astrotomic/notifynder-sender-messagebird)[ Packagist](https://packagist.org/packages/astrotomic/notifynder-sender-messagebird)[ RSS](/packages/astrotomic-notifynder-sender-messagebird/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (6)Versions (5)Used By (0)

Notifynder 4 MessageBird Sender - Laravel 5
===========================================

[](#notifynder-4-messagebird-sender---laravel-5)

[![GitHub release](https://camo.githubusercontent.com/9d616907bdee04d8a03e6852c93f803c256b8bb3f143145081034870112524b8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f617374726f746f6d69632f6e6f746966796e6465722d73656e6465722d6d657373616765626972642e7376673f7374796c653d666c61742d737175617265)](https://github.com/astrotomic/notifynder-sender-messagebird/releases)[![GitHub license](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://raw.githubusercontent.com/astrotomic/notifynder-sender-messagebird/master/LICENSE)[![GitHub issues](https://camo.githubusercontent.com/6395e995e9217603ecf6628e2639e969bc882ca26925295dc79831193a4f6562/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f617374726f746f6d69632f6e6f746966796e6465722d73656e6465722d6d657373616765626972642e7376673f7374796c653d666c61742d737175617265)](https://github.com/astrotomic/notifynder-sender-messagebird/issues)[![Total Downloads](https://camo.githubusercontent.com/1ac07bf652f633a193d16ac606c3263f9527801508a86d94a83abd3d6b488a2f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617374726f746f6d69632f6e6f746966796e6465722d73656e6465722d6d657373616765626972642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/astrotomic/notifynder-sender-messagebird)

[![StyleCI](https://camo.githubusercontent.com/b29943867bcc3f8d4b3c048eb433286dbf48214af27072621067457bc7e9c1ee/68747470733a2f2f7374796c6563692e696f2f7265706f732f37383031393038382f736869656c64)](https://styleci.io/repos/78019088)

[![Code Climate](https://camo.githubusercontent.com/aea42f0c9162b00fa3267fc999eab4eaf061c3b30dcf5e6499acfb629ec7ae46/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f417374726f746f6d69632f6e6f746966796e6465722d73656e6465722d6d657373616765626972642e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/Astrotomic/notifynder-sender-messagebird)

[![Slack Team](https://camo.githubusercontent.com/f11b571e287b4400bb775f6ae4b9ee50ba0a96186697735aa663860d1e2ed179/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736c61636b2d617374726f746f6d69632d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://astrotomic.slack.com)[![Slack join](https://camo.githubusercontent.com/8c57b06b8323408ec318f72a06ae3a99fffdc723d7d404859ce6d3796d4993a5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736c61636b2d6a6f696e2d677265656e2e7376673f7374796c653d736f6369616c)](https://notifynder.signup.team)

Documentation: **[Notifynder Docu](http://notifynder.info)**

---

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

[](#installation)

### Step 1

[](#step-1)

```
composer require astrotomic/notifynder-sender-messagebird

```

### Step 2

[](#step-2)

Add the following string to `config/app.php`

**Providers array:**

```
Astrotomic\Notifynder\NotifynderSenderMessageBirdServiceProvider::class,

```

### Step 3

[](#step-3)

Add the following array to `config/notifynder.php`

```
'senders' => [
    'messagebird' => [
        'access_key' => '',
        'callbacks' => [
            'sms' => function(\Astrotomic\Notifynder\Senders\Messages\SmsMessage $message, \Fenos\Notifynder\Models\Notification $notification) {
                return $message
                    ->from(...)
                    ->to(...)
                    ->body($notification->getText());
            },
            'voice' => function(\Astrotomic\Notifynder\Senders\Messages\CallMessage $message, \Fenos\Notifynder\Models\Notification $notification) {
                return $message
                    ->from(...)
                    ->to(...)
                    ->body($notification->getText())
                    ->lang('en-gb')
                    ->male();
            },
        ],
        'store' => false, // wether you want to also store the notifications in database
    ],
],
```

Register the sender callback in your `app/Providers/AppServiceProvider.php`

```
