https://github.com/iprit/botan-php
PHP SDK for Botan.io
https://github.com/iprit/botan-php
Last synced: 17 days ago
JSON representation
PHP SDK for Botan.io
- Host: GitHub
- URL: https://github.com/iprit/botan-php
- Owner: IPRIT
- License: other
- Created: 2015-08-07T21:58:41.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-11T15:00:54.000Z (almost 11 years ago)
- Last Synced: 2025-01-16T10:12:16.048Z (over 1 year ago)
- Language: PHP
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
PHP SDK for [Botan.io](http://botan.io)
================
Installation
------------
To get started, get [Composer](http://getcomposer.org/download/).
Run:
```
$ php composer.phar require iprit/botan-php:*
```
or add
```
"iprit/botan-php": "*"
```
to the `require` section of your `composer.json` file.
Usage
-----
Create [Yandex.AppMetrica](https://appmetrica.yandex.com/) api token and insert into $token variable.
```php
private $token = 'token';
public function _incomingMessage($message_json) {
$messageObj = json_decode($message_json, true);
$messageData = $messageObj['message'];
$botan = new IPRIT\BotanSDK\Botan($this->token);
$botan->track($messageData, 'Start');
}
```