sonko-dmitry/botan-php-sdk

Wrapper for botan telengram bot analytics

v1.0.0 2015-08-07 17:04 UTC

This package is auto-updated.

Last update: 2024-11-21 20:55:01 UTC


README

Packagist Packagist Packagist

This extension is the way to integrate Botan.io to you application.

Installation

The preferred way to install this extension is through composer.

To install, either run

$ php composer.phar require sonko-dmitry/botan-php-sdk:*

or add

"sonko-dmitry/botan-php-sdk": "*"

to the require section of your composer.json file.

Usage

  1. Now you can use wrapper
$tracker = new SonkoDmitry\BotanSDK\BotanTracker(1234567);
$tracker->track(123, ['text' => 'Hello world!'], 'Message');

Where "1234567" your Yandex.Appmetrica api token. 123 unique customer ID, for example chat_id or sender_id