2017 © Pedro Peláez
 

yii2-extension yii2-botan

Botan.io api component for Yii2

image

sonko-dmitry/yii2-botan

Botan.io api component for Yii2

  • Thursday, September 10, 2015
  • by SonkoDmitry
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Botan API for Yii2

This extension is the way to integrate iprit/botan-php wrapper with your Yii2 application., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

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., (*3)

Usage

  1. Add the component configuration in your global main.php config file:, (*4)

    'components' => [
     'botan' => [
         'class' => 'SonkoDmitry\Yii\Botan\Component',
         'token' => 'YOUR_YANDEX_APPMETRIKA_TOKEN',
     ],
    ],
    
  2. Now you can use component, (*5)

    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, (*6)

The Versions

10/09 2015

dev-master

9999999-dev http://github.com/SonkoDmitry/yii2-botan

Botan.io api component for Yii2

  Sources   Download

BSD-3-Clause

The Requires

 

by Sonko Dmitry

api yii2 yii botan botan.io