sonko-dmitry/yii2-botan 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sonko-dmitry/yii2-botan

Composer 安装命令:

composer require sonko-dmitry/yii2-botan

包简介

Botan.io api component for Yii2

README 文档

README

This extension is the way to integrate iprit/botan-php wrapper with your Yii2 application.

Installation

The preferred way to install this extension is through composer.

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.

Usage

  1. Add the component configuration in your global main.php config file:
'components' => [
    'botan' => [
        'class' => 'SonkoDmitry\Yii\Botan\Component',
        'token' => 'YOUR_YANDEX_APPMETRIKA_TOKEN',
    ],
],
  1. Now you can use component
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
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-08-09