PHPackages                             businessprocess/notify-service - 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. businessprocess/notify-service

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

businessprocess/notify-service
==============================

Package for notification channels

v2.0.4(5mo ago)15.6k↓50%MITPHPPHP ^8.0

Since Apr 11Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/businessprocess/notify-service)[ Packagist](https://packagist.org/packages/businessprocess/notify-service)[ RSS](/packages/businessprocess-notify-service/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (26)Used By (0)

Notification channels
=====================

[](#notification-channels)

[![PHP 8.x](https://camo.githubusercontent.com/29e76b25f44fd19ba3a88f85f00b3ac7329ffd604075db0fbbeda87f6c794491/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e302d626c7565)](https://camo.githubusercontent.com/29e76b25f44fd19ba3a88f85f00b3ac7329ffd604075db0fbbeda87f6c794491/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e302d626c7565)[![Laravel 8.x](https://camo.githubusercontent.com/3c7441bb2ae21c31ca18ffa084e2fb51a956727722dbd18b850336439becc367/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d382e782d6f72616e67652e737667)](http://laravel.com)[![Yii 2.x](https://camo.githubusercontent.com/ff8999e0e5a1e46689cc5a19d1d0f07ffafaa842838a983a2c4469458a1defa8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5969692d322e782d6f72616e6765)](https://www.yiiframework.com/doc/guide/2.0/ru)[![Latest Stable Version](https://camo.githubusercontent.com/ba6f62cc25f6318e3a642caec56ab05087e6ba599282e10bd7d58bc1a1261d00/68747470733a2f2f706f7365722e707567782e6f72672f627573696e65737370726f636573732f6e6f746966792d736572766963652f762f737461626c65)](https://camo.githubusercontent.com/ba6f62cc25f6318e3a642caec56ab05087e6ba599282e10bd7d58bc1a1261d00/68747470733a2f2f706f7365722e707567782e6f72672f627573696e65737370726f636573732f6e6f746966792d736572766963652f762f737461626c65)[![Release date](https://camo.githubusercontent.com/d0dfe33f2d4989b22ad67c3f01c0acc813a3a5e93c0d8b9ba1d29a95ff5a5b3d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f627573696e65737370726f636573732f6e6f746966792d73657276696365)](https://camo.githubusercontent.com/d0dfe33f2d4989b22ad67c3f01c0acc813a3a5e93c0d8b9ba1d29a95ff5a5b3d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f627573696e65737370726f636573732f6e6f746966792d73657276696365)[![Release Version](https://camo.githubusercontent.com/0982cfa00ce47f80f60eb8146f74b2ca12b37c7ab2442a01c5b6f1e14eccfe50/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f627573696e65737370726f636573732f6e6f746966792d73657276696365)](https://camo.githubusercontent.com/0982cfa00ce47f80f60eb8146f74b2ca12b37c7ab2442a01c5b6f1e14eccfe50/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f627573696e65737370726f636573732f6e6f746966792d73657276696365)[![Total Downloads](https://camo.githubusercontent.com/97fc5622d4ed0bce7bab11c568e690aeaf104ea8e6e83bb2c3d0da1e7e206512/68747470733a2f2f706f7365722e707567782e6f72672f627573696e65737370726f636573732f6e6f746966792d736572766963652f646f776e6c6f616473)](https://camo.githubusercontent.com/97fc5622d4ed0bce7bab11c568e690aeaf104ea8e6e83bb2c3d0da1e7e206512/68747470733a2f2f706f7365722e707567782e6f72672f627573696e65737370726f636573732f6e6f746966792d736572766963652f646f776e6c6f616473)[![Pull requests](https://camo.githubusercontent.com/4de707db7cee0a0954b50708872855042b2fbdf26c7a88a5f75e97fb41d3d897/68747470733a2f2f696d672e736869656c64732e696f2f6269746275636b65742f70722f627573696e65737370726f636573732f6e6f746966792d73657276696365)](https://camo.githubusercontent.com/4de707db7cee0a0954b50708872855042b2fbdf26c7a88a5f75e97fb41d3d897/68747470733a2f2f696d672e736869656c64732e696f2f6269746275636b65742f70722f627573696e65737370726f636573732f6e6f746966792d73657276696365)[![Software License](https://camo.githubusercontent.com/f5d9171601aa82ad4427c0d2e7e9a3b979561286eb661103a8c7bfad3830b084/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d706c61737469632d737175617265)](LICENSE)[![Stars](https://camo.githubusercontent.com/2a5317e2b46b1ee4662e7e316ff587718322df31d04ea86fac61c31649866ee5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f627573696e65737370726f636573732f6e6f746966792d736572766963653f7374796c653d736f6369616c)](https://camo.githubusercontent.com/2a5317e2b46b1ee4662e7e316ff587718322df31d04ea86fac61c31649866ee5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f627573696e65737370726f636573732f6e6f746966792d736572766963653f7374796c653d736f6369616c)

Notification messenger channel to Laravel FrameWork v6.0 and above.

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

[](#installation)

The recommended way to install channel is through [Composer](http://getcomposer.org).

```
composer require businessprocess/notify-service
```

Usage
------------------------------------------------

[](#usage-)

```
    Notify::getDeliveryProfiles() - Get all delivery profiles
    Notify::notifications() - get all notification
```

```
namespace App\Notifications;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Notification;

class MyNotification extends Notification implements ShouldQueue
{
   public function via($notifiable): array
    {
        return ['notify'];
    }

    public function toNotify($notifiable)
    {
        $notice = \NotificationChannels\Models\NotifyService\Notice::create('profileUuid');

        $notice->setLangCode(app()->getLocale())
            ->setTimeToDelivery(now()->addHour())
            ->setText('Welcome to hell')
            ->options()
            ->email(
            'Hello email',
            'From admin'
        );

        $notice->destination()
            ->email($notifiable->email)
            ->viber($notifiable->phone);

        //add file to notice
        $notice->setFile(storage_path('./random.jpg'))

        $notice->responseCallback(function (?array $response){
            // can be processed response from notify service
            if(! is_null($response)){
                echo data_get($response, 'id');
            }
        })

        return $notice;
    }
}
```

```
    // Notice object can be obtained from the container with the addition of the profileUuid from the configuration

    public function toNotify($notifiable, \NotificationChannels\Models\NotifyService\Notice $notice)
    {
        return $notice->fill('ArrayOfParams');
    }
}
```

```
    //call
    $user->notify(new MyNotification());

    //or multiply users

    Notification::send($users, new MyNotification());
```

#### Available Options

[](#available-options)

OptionDescriptionDefault valueurlAPI url (required)nullloginLogin (required)nullpasswordPassword (required)nullprofileUuidUuid of delivery profilenull#### Params Heroku/BptPaymentsBot/SmartSender

[](#params-herokubptpaymentsbotsmartsender)

- [Swagger](https://dev.mail-service.me/api-docs/#/Delivery%20profile/DeliveryProfileCreateDeliveryProfile)

OptionDescriptionDefault valueprofileUuidUuid of delivery profile (required)nulllangCodeNotify template locale (required)nullemitterGroup by string keynulldestinationRecipient channel keys (required)null,objectdataTemplate data (required if no text)null,objecttextMessage text (required if no data)nulloptionsOptionsnull,objectkeyGroup by keynulltimeToDeliveryTime to deliverynull```
   public function via($notifiable): array
    {
        return ['messenger'];
    }

    public function toMessenger($notifiable): string
    {
        return 'Text of body';
    }
```

#### Available Options

[](#available-options-1)

OptionDescriptionDefault valueauthenticationYour API key (required)nullurlAPI url (required)nullproject\_idProject iD (required)nullmessengerList of messengers (required)vibersendAllSend to all messenger in listfalsecallback\_urlCallback url to response from messengernulluser\_phoneUser phonenull```
   public function via($notifiable): array
    {
        return ['smart-sender'];
    }

    public function toSmartSender($notifiable): AbstractSender
    {
        return new BptPaymentsBot::task(
            'ArrayOfParams'
        );
    }
```

#### Available Options

[](#available-options-2)

OptionDescriptionDefault valueurlAPI url (required)null#### Params Heroku/BptPaymentsBot/SmartSender

[](#params-herokubptpaymentsbotsmartsender-1)

- [Swagger](https://bpt-payments-dev-bot.ooo.ua/swagger-route#/refill-task/RefillTaskController_create)

OptionDescriptionDefault valuerequestIDYour request ID (required)nulldateDate by format Y-m-d H:i:s (required)nulltypeRequest type (required)nullnotesComment (required)nulluserUser name (required)nullauthorAuthor name (required)nullamountAmount (required)nullapplyUrlCallback approve url (required)nulldeclineUrlCallback cancel url (required)nullUsage Laravel
-------------------------------------------------

[](#usage-laravel-)

```
    $user = User::find(1);
    Notification::send($user, new EmailNotification)
```

Usage YII2
-------------------------------------------

[](#usage-yii2-)

```
[
   'modules' => [
       'notifications' => [
           'class' => 'NotificationChannels\yii\Module',
               'channels' => [
                   'notify' => [
                       'class' => 'NotificationChannels\yii\Channels\NotifyChannel',
                       'url' => $params['notifyService']['url'],
                       'login' => $params['notifyService']['login'],
                       'password' => $params['notifyService']['password'],
                   ],
               ],
           ],
       ],
   ],
]
```

```
namespace app\notifications;

use NotificationChannels\yii\Notification;
use NotificationChannels\Models\NotifyService\Notice;

class EmailNotification extends Notification
{
   public function via($notifiable): array
   {
       return ['notify'];
   }

   public function toNotify($notifiable)
   {
       return Notice::create(
        'ArrayOfParams'
       );
   }
}
```

```
   $user = User::findOne(1);

   EmailNotification::create()->sendTo($user);
   // (new EmailNotification())->sendTo($user);
```

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance73

Regular maintenance activity

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 93.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 ~41 days

Recently: every ~100 days

Total

25

Last Release

151d ago

Major Versions

v1.4.0 → v2.0.02024-11-12

### Community

Maintainers

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

---

Top Contributors

[![maveriksEcho](https://avatars.githubusercontent.com/u/40034131?v=4)](https://github.com/maveriksEcho "maveriksEcho (31 commits)")[![motor-ua](https://avatars.githubusercontent.com/u/10684775?v=4)](https://github.com/motor-ua "motor-ua (2 commits)")

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/businessprocess-notify-service/health.svg)

```
[![Health](https://phpackages.com/badges/businessprocess-notify-service/health.svg)](https://phpackages.com/packages/businessprocess-notify-service)
```

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[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/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

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

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)[tzsk/sms

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

320244.3k6](/packages/tzsk-sms)

PHPackages © 2026

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