PHPackages                             sonko-dmitry/yii2-botan - 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. sonko-dmitry/yii2-botan

ActiveYii2-extension

sonko-dmitry/yii2-botan
=======================

Botan.io api component for Yii2

06PHP

Since Sep 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/SonkoDmitry/yii2-botan)[ Packagist](https://packagist.org/packages/sonko-dmitry/yii2-botan)[ RSS](/packages/sonko-dmitry-yii2-botan/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Botan API for Yii2
==================

[](#botan-api-for-yii2)

This extension is the way to integrate [iprit/botan-php](https://packagist.org/packages/iprit/botan-php) wrapper with your Yii2 application.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

To install, either run

```
$ composer require sonko-dmitry/yii2-botan:*

```

or add

```
"sonko-dmitry/yii2-botan": "*"

```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

1. Add the component configuration in your *global* `main.php` config file:

```
'components' => [
    'botan' => [
        'class' => 'SonkoDmitry\Yii\Botan\Component',
        'token' => 'YOUR_YANDEX_APPMETRIKA_TOKEN',
    ],
],
```

1. Now you can use component

```
public function _incomingMessage($message_json) {
    $messageObj = json_decode($message_json, true);
    $messageData = $messageObj['message'];

    \Yii::$app->botan->track($messageData, 'Start');
}
```

Where 123 unique customer ID, for example chat\_id or sender\_id

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![SonkoDmitry](https://avatars.githubusercontent.com/u/665862?v=4)](https://github.com/SonkoDmitry "SonkoDmitry (2 commits)")

### Embed Badge

![Health badge](/badges/sonko-dmitry-yii2-botan/health.svg)

```
[![Health](https://phpackages.com/badges/sonko-dmitry-yii2-botan/health.svg)](https://phpackages.com/packages/sonko-dmitry-yii2-botan)
```

PHPackages © 2026

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