PHPackages                             enniel/laravel-asterisk-notification-channel - 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. enniel/laravel-asterisk-notification-channel

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

enniel/laravel-asterisk-notification-channel
============================================

Asterisk Notifications Driver

0.1.1(9y ago)71.7k1MITPHPPHP &gt;=5.6.4

Since Sep 6Pushed 9y ago3 watchersCompare

[ Source](https://github.com/enniel/laravel-asterisk-notification-channel)[ Packagist](https://packagist.org/packages/enniel/laravel-asterisk-notification-channel)[ Docs](https://github.com/laravel-notification-channels/asterisk)[ RSS](/packages/enniel-laravel-asterisk-notification-channel/feed)WikiDiscussions develop Synced 4w ago

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

Asterisk notification channel for Laravel 5.3
=============================================

[](#asterisk-notification-channel-for-laravel-53)

This package makes it easy to send notifications using [Asterisk Manager Interface (AMI)](https://wiki.asterisk.org/wiki/display/AST/The+Asterisk+Manager+TCP+IP+API) and [Asterisk Chan Dongle](https://github.com/bg111/asterisk-chan-dongle) with Laravel 5.3.

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the Asterisk configuration](#setting-up-the-Asterisk-configuration)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install this package via composer:

```
composer require enniel/laravel-asterisk-notification-channel
```

Next add the service provider to your `config/app.php`:

```
...
'providers' => [
    ...
     NotificationChannels\Asterisk\AsteriskServiceProvider::class,
],
...
```

### Setting up the Asterisk service

[](#setting-up-the-asterisk-service)

[See enniel/ami documentation](https://github.com/enniel/ami/blob/master/README.md).

Usage
-----

[](#usage)

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

```
use NotificationChannels\Asterisk\AsteriskChannel;
use NotificationChannels\Asterisk\AsteriskMessage;
use Illuminate\Notifications\Notification;

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

    public function toAsterisk($notifiable)
    {
        return AsteriskMessage::create('message text');
    }
}
```

In order to let your Notification know which phone number you are targeting, add the `routeNotificationForAsterisk` method to your Notifiable model.

**Important note**: Asterisk requires the recipients phone number to be in international format. For instance: 0031612345678

```
public function routeNotificationForAsterisk()
{
    return '0031612345678';
}
```

### Available message methods

[](#available-message-methods)

- `content('test')`: Set message text.
- `device('modem1')`: Set device for sending SMS message.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Evgeni Razumov](https://github.com/enniel)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

Recently: every ~26 days

Total

7

Last Release

3435d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4205ff91a30f69f387f3f31465b7ff65f389839fc2f3215cd0b1bd9ba1727a0c?d=identicon)[enniel](/maintainers/enniel)

---

Top Contributors

[![enniel](https://avatars.githubusercontent.com/u/19760944?v=4)](https://github.com/enniel "enniel (12 commits)")

---

Tags

amiasterisklaravelnotificationssms

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/enniel-laravel-asterisk-notification-channel/health.svg)

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

###  Alternatives

[laravel-notification-channels/webpush

Web Push Notifications driver for Laravel.

9005.5M26](/packages/laravel-notification-channels-webpush)[spatie/laravel-health

Monitor the health of a Laravel application

87511.3M155](/packages/spatie-laravel-health)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2022.1M6](/packages/laravel-notification-channels-apn)[illuminate/mail

The Illuminate Mail package.

5910.6M479](/packages/illuminate-mail)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1613.4M11](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2401.4M14](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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