PHPackages                             davidpella/beem-sms-laravel - 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. davidpella/beem-sms-laravel

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

davidpella/beem-sms-laravel
===========================

Provides Beem notification channel for Laravel

0.1.0(4y ago)09MITPHPPHP &gt;=7.4

Since Jul 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/davidpella/beem-sms-laravel)[ Packagist](https://packagist.org/packages/davidpella/beem-sms-laravel)[ Docs](https://github.com/davidpella/beem-sms-laravel)[ RSS](/packages/davidpella-beem-sms-laravel/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

Beem SMS notifications channel for Laravel
==========================================

[](#beem-sms-notifications-channel-for-laravel)

This package makes it easy to send Beem SMS notifications with Laravel 8.x

Sending an SMS to a user becomes as simple as using:

```
use App\Notifications\AccountCreated;

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

Or on-demand notifications

```
use App\Notifications\AccountCreated;
use Illuminate\Support\Facades\Notification;

Notification::route("beem-sms", "255762000000")->notify(new AccountCreated);
```

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

[](#installation)

You can install the package via composer:

```
composer require davidpella/beem-sms-laravel
```

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

[](#configuration)

Add your Beem Account api\_key, api\_secret, and source\_address to your .env:

```
BEEM_SMS_SOURCE_ADDRESS=
BEEM_SMS_API_KEY=
BEEM_SMS_SECRET_KEY=
```

Advanced configuration
----------------------

[](#advanced-configuration)

Run to public configuration file `config` directory

```
php artisan vendor:publish --provider="DavidPella\BeemSms\BeemSmsServiceProvider"
```

Usage
-----

[](#usage)

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

```
namespace App\Notifications;

use Illuminate\Bus\Queueable;
use DavidPella\BeemSms\Channel\BeemSmsChannel;
use Illuminate\Notifications\Notification;
use DavidPella\BeemSms\Channel\BeemSmsMessage;

class AccountCreated extends Notification
{
    use Queueable;

    public function via($notifiable):array
    {
        return [BeemSmsChannel::class]; // or ["beem-sms"]
    }

    public function toBeemSms($notifiable):BeemSmsMessage
    {
        return (new BeemSmsMessage())
            ->content("Your {$notifiable->name} account was created!");
    }
}
```

In order to let your Notification know which phone are you sending to, the channel will look for the `phone` attribute of the Notifiable model.

If you want to override this behaviour, add the `routeNotificationForBeemSms` method to your Notifiable model.

```
namespace App\Models;

use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;

class User extends Authenticatable
{
    use Notifiable;

    public function routeNotificationForBeemSms()
    {
        return $this->phone_number;
    }
}
```

Or

```
namespace App\Models;

use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;

class User extends Authenticatable
{
    use Notifiable;

    public function routeNotificationForBeemSms()
    {
        return "255762000000";
    }
}
```

Available message methods
-------------------------

[](#available-message-methods)

To use the Beem Sms Client Library you can use the facade:

```
use DavidPella\BeemSms\Facades\BeemSms;

BeemSms::send([
    "recipient" => "255762000000",
    "message" => "Using the facade to send a message.",
]);
```

Or request the instance from the service container

```
app("DavidPella\BeemSms\BeemSmsClient")
    ->recipient("255762000000")
    ->message("Send sms message using laravel service container")
    ->dispatch();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](https://github.com/davidpella/beem-sms-laravel/blob/master/CHANGELOG.md) for more information on what has changed recently.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.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

Unknown

Total

1

Last Release

1760d ago

### Community

Maintainers

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

---

Top Contributors

[![davidjpella](https://avatars.githubusercontent.com/u/6358916?v=4)](https://github.com/davidjpella "davidjpella (16 commits)")[![davidpella](https://avatars.githubusercontent.com/u/213621503?v=4)](https://github.com/davidpella "davidpella (2 commits)")

---

Tags

beemlaravelnotificationsmslaravelnotificationsmsbeem-smsbeemdavidpella

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/davidpella-beem-sms-laravel/health.svg)

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

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

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

Provides Twilio notification channel for Laravel

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

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[tzsk/sms

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

320244.3k6](/packages/tzsk-sms)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)[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)
