PHPackages                             kononovspb/botman-viber-driver - 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. [API Development](/categories/api)
4. /
5. kononovspb/botman-viber-driver

ActiveLibrary[API Development](/categories/api)

kononovspb/botman-viber-driver
==============================

Viber driver for BotMan

v1.0(6y ago)434.8k↓50%2[2 PRs](https://github.com/kononovspb/viber-driver-botman/pulls)MITPHPPHP &gt;=7.0CI failing

Since Apr 11Pushed 4y ago3 watchersCompare

[ Source](https://github.com/kononovspb/viber-driver-botman)[ Packagist](https://packagist.org/packages/kononovspb/botman-viber-driver)[ Docs](https://github.com/kononovspb/viber-driver-botman)[ RSS](/packages/kononovspb-botman-viber-driver/feed)WikiDiscussions master Synced 1mo ago

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

BotMan Viber Driver
===================

[](#botman-viber-driver)

Connect Viber with [BotMan](http://botman.io/)

Installation &amp; Setup
------------------------

[](#installation--setup)

First you need to pull in the Viber Driver.

```
composer require kononovspb/botman-viber-driver
```

Then load the driver before creating the BotMan instance (only when you don't use BotMan Studio):

```
DriverManager::loadDriver(\Kononovspb\Drivers\Viber\ViberDriver::class);

// Create BotMan instance
BotManFactory::create($config);
```

This driver requires a valid and secure URL in order to set up webhooks and receive events and information from the chat users. This means your application should be accessible through an HTTPS URL.

To connect BotMan with your Viber Bot, you first need to follow the [official guide](https://partners.viber.com/account/create-bot-account) to create your Viber Bot and an access token.

Once you have obtained the access token, place it in your .env file like VIBER\_TOKEN=YOUR-VIBER-TOKEN-HERE. There it gets automatically loaded to your config/botman/viber.php file.

If you don't use BotMan Studio, add these line to $config array that you pass when you create the object from BotManFactory.

```
'viber' => [
    'token' => 'YOUR-VIBER-TOKEN-HERE',
]

```

Register Your Webhook
---------------------

[](#register-your-webhook)

To let your Viber Bot know, how it can communicate with your BotMan bot, you have to register the URL where BotMan is running at, with Viber.

You can do this by sending a `POST` request to this URL:

`https://chatapi.viber.com/pa/set_webhook`

This POST request needs parameter called url with the URL that points to your BotMan logic / controller. If you use [BotMan Studio](https://botman.io/2.0/botman-studio) it will be: `https://yourapp.domain/botman`. HTTPS is a must, because of security reasons.

```
{
   "url":"https://my.host.com",
   "event_types":[
      "delivered",
      "seen",
      "failed",
      "subscribed",
      "unsubscribed",
      "conversation_started"
   ],
   "send_name": true,
   "send_photo": true
}
```

You can read about other fields in the request in the [official documentation](https://developers.viber.com/docs/api/rest-bot-api/#setting-a-webhook).

Instead of manually sending the request to Viber you can use a console command to register your Webhook.

` php artisan botman:viber:register`

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor2

2 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

Unknown

Total

1

Last Release

2229d ago

### Community

Maintainers

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

---

Top Contributors

[![adellantado](https://avatars.githubusercontent.com/u/2136860?v=4)](https://github.com/adellantado "adellantado (18 commits)")[![TheArdent](https://avatars.githubusercontent.com/u/20246260?v=4)](https://github.com/TheArdent "TheArdent (13 commits)")[![kononovspb](https://avatars.githubusercontent.com/u/19250612?v=4)](https://github.com/kononovspb "kononovspb (5 commits)")[![polyskalov](https://avatars.githubusercontent.com/u/708987?v=4)](https://github.com/polyskalov "polyskalov (5 commits)")[![krogla](https://avatars.githubusercontent.com/u/6272279?v=4)](https://github.com/krogla "krogla (3 commits)")[![Sasha-Ch](https://avatars.githubusercontent.com/u/94524537?v=4)](https://github.com/Sasha-Ch "Sasha-Ch (1 commits)")

---

Tags

botMessengerBotmanviber

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kononovspb-botman-viber-driver/health.svg)

```
[![Health](https://phpackages.com/badges/kononovspb-botman-viber-driver/health.svg)](https://phpackages.com/packages/kononovspb-botman-viber-driver)
```

###  Alternatives

[botman/driver-telegram

Telegram driver for BotMan

92437.3k6](/packages/botman-driver-telegram)[botman/driver-slack

Slack driver for BotMan

51267.0k2](/packages/botman-driver-slack)

PHPackages © 2026

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