PHPackages                             gvital3230/laravel-notification-channel-viber-net-ua - 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. gvital3230/laravel-notification-channel-viber-net-ua

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

gvital3230/laravel-notification-channel-viber-net-ua
====================================================

viber.net.ua notification channel for Laravel

1.1.3(3y ago)03.9k↓33.3%MITPHPPHP &gt;=7.2

Since Jul 21Pushed 3y agoCompare

[ Source](https://github.com/gvital3230/laravel-notification-viber-net-ua)[ Packagist](https://packagist.org/packages/gvital3230/laravel-notification-channel-viber-net-ua)[ Docs](https://github.com/laravel-notification-channels/viber-net-ua)[ RSS](/packages/gvital3230-laravel-notification-channel-viber-net-ua/feed)WikiDiscussions master Synced 1mo ago

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

ViberNetUa Notifications Channel for Laravel
============================================

[](#vibernetua-notifications-channel-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ca2cfedde24b1da14b8bf0b3b8c2658a13f2749645cf0f9424ba4dca7a6cebd4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f76696265726e657475612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/vibernetua)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/942124ce8224a9f4caa04e41e63c27d33a497d8932ba92dbb129e79f9ad9b14a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f76696265726e657475612f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/laravel-notification-channels/vibernetua)[![StyleCI](https://camo.githubusercontent.com/17332f13644c2bd108b3f1a882fa887852ed7c09c2c3e042f2b2d1c3f1437494/68747470733a2f2f7374796c6563692e696f2f7265706f732f3233343831323835322f736869656c64)](https://styleci.io/repos/234812852)[![Quality Score](https://camo.githubusercontent.com/4fa4e7fe4cbb2d7803b246943e42aa7326a8eef60d6941a66359c2a0a7405c5e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f76696265726e657475612e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/vibernetua)[![Code Coverage](https://camo.githubusercontent.com/685e238081f7dbc7ff6b948cc17e2efcaf93b3c9e60a52d6aa6a8337b2cd8b6a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f76696265726e657475612f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/vibernetua/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/70b1a88070a405d611154ad1921e970885d8727b97ce86a904cf0862131e6f7f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f76696265726e657475612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/vibernetua)

This package makes it easy to send notifications using [ViberNetUa](https://viber.net.ua) with Laravel 5.5+, 6.0 and 7.0

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the ViberNetUa service](#setting-up-the-ViberNetUa-service)
- [Usage](#usage)
    - [ On-Demand Notifications](#on-demand-notifications)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install this package via composer:

```
composer require gvital3230/laravel-notification-channel-viber-net-ua
```

### Setting up the ViberNetUa service

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

Add your ViberNetUa sms gate login, password and default sender name to your config/services.php:

```
// config/services.php
...
    'vibernetua' => [
        'endpoint' => env('VIBERNETUA_ENDPOINT', 'https://my2.viber.net.ua/api/v2/viber/dispatch'),
        'token' => env('VIBERNETUA_TOKEN'),
        'sender' => env('VIBERNETUA_SENDER'),
        'debug' => env('VIBERNETUA_DEBUG'),
        'sandboxMode' => env('VIBERNETUA_SANDBOX_MODE', false),
    ],
...
```

Usage
-----

[](#usage)

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

```
use Illuminate\Notifications\Notification;
use NotificationChannels\ViberNetUa\ViberNetUaMessage;

class AccountApproved extends Notification
{
    public function via($notifiable)
    {
        return ['vibernetua'];
    }

    public function toViberNetUa($notifiable)
    {
        return (new ViberNetUaMessage(
            \NotificationChannels\ViberNetUa\ViberNetUaMessageType::TYPE_ONLY_MESSAGE(),
            'Account approved',
            'Congratulations, your accaunt was approved!'));
    }
}
```

In your notifiable model, make sure to include a routeNotificationForViberNetUa() method, which returns a phone number or an array of phone numbers.

```
public function routeNotificationForViberNetUa()
{
    return $this->phone;
}
```

### On-Demand Notifications

[](#on-demand-notifications)

Sometimes you may need to send a notification to someone who is not stored as a "user" of your application. Using the Notification::route method, you may specify ad-hoc notification routing information before sending the notification:

```
Notification::route('vibernetua', '+380501111111')
            ->notify(new AccountApproved());
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Security
--------

[](#security)

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

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

[](#contributing)

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

Credits
-------

[](#credits)

- [Vitalii Goncharov](https://github.com/gvital3230)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor3

3 contributors hold 50%+ of commits

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

Recently: every ~182 days

Total

6

Last Release

1390d ago

Major Versions

0.1 → v1.0.12020-07-21

### Community

Maintainers

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

---

Top Contributors

[![atymic](https://avatars.githubusercontent.com/u/50683531?v=4)](https://github.com/atymic "atymic (10 commits)")[![gvital3230](https://avatars.githubusercontent.com/u/8995097?v=4)](https://github.com/gvital3230 "gvital3230 (8 commits)")[![mpociot](https://avatars.githubusercontent.com/u/804684?v=4)](https://github.com/mpociot "mpociot (7 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (7 commits)")[![irazasyed](https://avatars.githubusercontent.com/u/1915268?v=4)](https://github.com/irazasyed "irazasyed (6 commits)")[![themsaid](https://avatars.githubusercontent.com/u/4332182?v=4)](https://github.com/themsaid "themsaid (4 commits)")[![lukewaite](https://avatars.githubusercontent.com/u/618130?v=4)](https://github.com/lukewaite "lukewaite (2 commits)")[![casperboone](https://avatars.githubusercontent.com/u/15815208?v=4)](https://github.com/casperboone "casperboone (2 commits)")[![JayBizzle](https://avatars.githubusercontent.com/u/340752?v=4)](https://github.com/JayBizzle "JayBizzle (1 commits)")[![talvbansal](https://avatars.githubusercontent.com/u/7305131?v=4)](https://github.com/talvbansal "talvbansal (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gvital3230-laravel-notification-channel-viber-net-ua/health.svg)

```
[![Health](https://phpackages.com/badges/gvital3230-laravel-notification-channel-viber-net-ua/health.svg)](https://phpackages.com/packages/gvital3230-laravel-notification-channel-viber-net-ua)
```

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

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

Amazon Simple Notification Service (AWS SNS) notification channel for Laravel.

541.1M2](/packages/laravel-notification-channels-aws-sns)

PHPackages © 2026

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