https://github.com/sonkodmitry/botan-php-sdk
Wrapper for Botan.io API
https://github.com/sonkodmitry/botan-php-sdk
Last synced: 4 months ago
JSON representation
Wrapper for Botan.io API
- Host: GitHub
- URL: https://github.com/sonkodmitry/botan-php-sdk
- Owner: SonkoDmitry
- License: other
- Created: 2015-08-07T16:52:57.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-10T09:14:30.000Z (almost 10 years ago)
- Last Synced: 2024-12-31T20:31:23.370Z (6 months ago)
- Language: PHP
- Size: 101 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Telegram bot API for Yii2
================
[](https://github.com/SonkoDmitry/botan-php-sdk/blob/master/LICENSE.md)
[](https://packagist.org/packages/sonko-dmitry/botan-php-sdk)
[](https://packagist.org/packages/sonko-dmitry/botan-php-sdk)This extension is the way to integrate [Botan.io](http://botan.io/) to you application.
Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).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
-----
0. Now you can use wrapper
```php
$tracker = new SonkoDmitry\BotanSDK\BotanTracker(1234567);
$tracker->track(123, ['text' => 'Hello world!'], 'Message');
```
Where "1234567" your [Yandex.Appmetrica](https://appmetrika.yandex.com/) api token. 123 unique customer ID, for example chat_id or sender_id