Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sonkodmitry/botan-php-sdk
Wrapper for Botan.io API
https://github.com/sonkodmitry/botan-php-sdk
Last synced: 7 days 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-10T09:14:30.000Z (over 9 years ago)
- Last Synced: 2024-12-09T20:54:24.853Z (28 days 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
================
[![Packagist](https://img.shields.io/packagist/l/sonko-dmitry/botan-php-sdk.svg)](https://github.com/SonkoDmitry/botan-php-sdk/blob/master/LICENSE.md)
[![Packagist](https://img.shields.io/packagist/v/sonko-dmitry/botan-php-sdk.svg)](https://packagist.org/packages/sonko-dmitry/botan-php-sdk)
[![Packagist](https://img.shields.io/packagist/dt/sonko-dmitry/botan-php-sdk.svg)](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