PHPackages                             sokil/php-viber-notifier - 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. sokil/php-viber-notifier

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

sokil/php-viber-notifier
========================

Allows to implement subscription on Viber's account and broadcast notifications to different groups of subscribed userss,

2.0.3(4y ago)5117MITPHPPHP &gt;=7.3CI failing

Since May 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sokil/php-viber-notifier)[ Packagist](https://packagist.org/packages/sokil/php-viber-notifier)[ Docs](https://github.com/sokil/php-viber-notifier)[ RSS](/packages/sokil-php-viber-notifier/feed)WikiDiscussions 2.0 Synced today

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

PHP Viber notifier
==================

[](#php-viber-notifier)

Allows to implement subscription on Viber's account and broadcast notifications to different groups (roles) of subscribed users.

[![Total Downloads](https://camo.githubusercontent.com/95e70401266a1cd38811cabe30cba2da98952b04422d291505bd6d2a2173e9df/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f6b696c2f7068702d76696265722d6e6f7469666965722e737667)](https://packagist.org/packages/sokil/php-viber-notifier)[![Build Status](https://camo.githubusercontent.com/82c55ade602be0236b6a21577d81ce2b1c9650d2799181fd9e2ec9db6356e45c/68747470733a2f2f7472617669732d63692e6f72672f736f6b696c2f7068702d76696265722d6e6f7469666965722e706e673f6272616e63683d6d61737465722632)](https://travis-ci.org/sokil/php-viber-notifier)[![Coverage Status](https://camo.githubusercontent.com/aae3a54c4fb2a207708d4f0266903daa4336ea82ae35c093cc6bacda19c4f485/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f736f6b696c2f7068702d76696265722d6e6f7469666965722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/sokil/php-viber-notifier?branch=master)

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

[](#installation)

```
composer require sokil/php-viber-notifier

```

WebHook
-------

[](#webhook)

Viber informs server about events by webhook. It must be passed to Viber using API.

For Example:

```
#!/bin/sh

curl -XPOST -H 'X-Viber-Auth-Token: your-bot-api-token' "https://chatapi.viber.com/pa/set_webhook" -d '{"url": "https://server.com/chatbot/webhook/viber", "event_types": ["subscribed","unsubscribed","conversation_started"], "send_name": true, "send_photo" : true}'

```

Usage
-----

[](#usage)

To start sending notifications via Viber we need to [create bot](https://developers.viber.com/docs/api/rest-bot-api/#get-started) first.

When user joins Viber's chatbot, Viber sends postback request to our site with subscribed user details. Then we may send notifications to all subscribed users.

Users may have different roles, so we may broadcast different messages to different roles of users.

### Subscribers repository

[](#subscribers-repository)

First we need to implement storage where subscribed Viber users and their roles will be stored.

Storage must implement `SubscribersRepositoryInterface`.

### Viber chat bot client

[](#viber-chat-bot-client)

If you already have convigured Viber bot in your project, just create adapter by implementing interface `ViberClientInterface`. If you have no chatbot in you project, use basic implementation `ViberClient`.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

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

Recently: every ~5 days

Total

8

Last Release

1562d ago

Major Versions

0.4 → 1.0.x-dev2020-07-24

1.0.x-dev → 2.0.02022-01-09

PHP version history (2 changes)0.3PHP &gt;=5.5

2.0.0PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/902e21ecf6517341b1f2a3c2f93a3eb115396fc6524effaeabc816b481909e64?d=identicon)[sokil](/maintainers/sokil)

---

Top Contributors

[![sokil](https://avatars.githubusercontent.com/u/1829948?v=4)](https://github.com/sokil "sokil (60 commits)")

---

Tags

notification-servicenotification-viberviberviber-apiviber-chatbotviber-clientviber-notificationphpviber

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sokil-php-viber-notifier/health.svg)

```
[![Health](https://phpackages.com/badges/sokil-php-viber-notifier/health.svg)](https://phpackages.com/packages/sokil-php-viber-notifier)
```

###  Alternatives

[henrique-borba/php-sieve-manager

A modern (started in 2022) PHP library for the ManageSieve protocol (RFC5804) to create/edit Sieve scripts (RFC5228). Used by Cypht Webmail.

23125.7k2](/packages/henrique-borba-php-sieve-manager)[tomatophp/filament-accounts

Manage your multi accounts inside your app using 1 table with multi auth and a lot of integrations

748.3k7](/packages/tomatophp-filament-accounts)[djunehor/laravel-sms

Send SMS from your laravel application

385.3k1](/packages/djunehor-laravel-sms)

PHPackages © 2026

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