PHPackages                             janyksteenbeek/laravel-bird-notifications - 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. janyksteenbeek/laravel-bird-notifications

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

janyksteenbeek/laravel-bird-notifications
=========================================

Bird notification channel for Laravel

v1.1.1(1y ago)0285MITPHPPHP ^8.2

Since Dec 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/janyksteenbeek/laravel-bird-notifications)[ Packagist](https://packagist.org/packages/janyksteenbeek/laravel-bird-notifications)[ Docs](https://github.com/janyksteenbeek/laravel-bird-notifications)[ RSS](/packages/janyksteenbeek-laravel-bird-notifications/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Bird Notification Channel
=================================

[](#laravel-bird-notification-channel)

This package provides a Laravel notification channel for sending SMS messages using the Bird API.

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

[](#installation)

You can install this package via Composer:

```
composer require janyksteenbeek/laravel-bird-notifications
```

Configuration
-------------

[](#configuration)

1. Add your Bird credentials to your `.env` file:

```
BIRD_ACCESS_KEY=your_access_key
BIRD_WORKSPACE_ID=your_workspace_id
BIRD_CHANNEL_ID=your_channel_id
```

2. Add the configuration to `config/services.php`:

```
'bird' => [
    'access_key' => env('BIRD_ACCESS_KEY'),
    'workspace' => env('BIRD_WORKSPACE_ID'),
    'channel' => env('BIRD_CHANNEL_ID'),
],
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

First, create a notification class using Laravel's notification command:

```
php artisan make:notification OrderConfirmation
```

Then, implement the `toBird` method in your notification class:

```
use NotificationChannels\Bird\BirdMessage;
use NotificationChannels\Bird\BirdChannel;

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

    public function toBird($notifiable)
    {
        return (new BirdMessage())
            ->setBody("Your order #{$this->order->id} has been confirmed!")
            ->setRecipients($notifiable->phone_number);
    }
}
```

### Using BirdRoute for Dynamic Configuration

[](#using-birdroute-for-dynamic-configuration)

BirdRoute allows you to customize the Bird configuration per notification. This is useful when you need to:

- Send to multiple recipients
- Use different access tokens
- Use different workspaces
- Use different channels

#### Method 1: Using BirdRoute in the Notifiable Model

[](#method-1-using-birdroute-in-the-notifiable-model)

```
use NotificationChannels\Bird\BirdRoute;

class User extends Authenticatable
{
    public function routeNotificationForBird($notification)
    {
        return BirdRoute::make(
            recipients: [$this->phone_number],
            token: 'custom-access-token',        // optional
            workspace: 'custom-workspace-id',     // optional
            channel: 'custom-channel-id'         // optional
        );
    }
}
```

#### Method 2: Using BirdRoute in the Notification

[](#method-2-using-birdroute-in-the-notification)

```
use NotificationChannels\Bird\BirdMessage;
use NotificationChannels\Bird\BirdRoute;

class OrderConfirmation extends Notification
{
    public function toBird($notifiable)
    {
        // Create a BirdRoute instance
        $route = BirdRoute::make(
            recipients: ['+31612345678', '+31687654321'],
            workspace: 'special-workspace-id',
            channel: 'urgent-channel-id'
        );

        // Create your message
        $message = (new BirdMessage())
            ->setBody("Your order #{$this->order->id} has been confirmed!");

        // Apply the route configuration
        if ($route->token) {
            $message->setAccessToken($route->token);
        }
        $message->setRecipients($route->recipients);

        return $message;
    }
}
```

### Sending to Multiple Recipients

[](#sending-to-multiple-recipients)

```
public function toBird($notifiable)
{
    return (new BirdMessage())
        ->setBody('Your order has been confirmed!')
        ->setRecipients([
            '+31612345678',
            '+31687654321'
        ]);
}
```

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

Special thanks to  for providing a good base.

License
-------

[](#license)

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

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance48

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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

Total

4

Last Release

388d ago

PHP version history (2 changes)v1.0PHP ^8.4

v1.1PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/ff89bdcd628dcd42b4add24d5d88618df658f974c6909c54da30447bcc4faffc?d=identicon)[janyksteenbeek](/maintainers/janyksteenbeek)

---

Top Contributors

[![janyksteenbeek](https://avatars.githubusercontent.com/u/3578636?v=4)](https://github.com/janyksteenbeek "janyksteenbeek (7 commits)")

### Embed Badge

![Health badge](/badges/janyksteenbeek-laravel-bird-notifications/health.svg)

```
[![Health](https://phpackages.com/badges/janyksteenbeek-laravel-bird-notifications/health.svg)](https://phpackages.com/packages/janyksteenbeek-laravel-bird-notifications)
```

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