定制 team-reflex/ebot-api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

team-reflex/ebot-api

最新稳定版本:1.0.1

Composer 安装命令:

composer require team-reflex/ebot-api

包简介

An API to interact with the CS:GO match manager, eBot

README 文档

README

This is an API to interact with the popular CS:GO Match Manager eBot. It is still a work in progress, not to be used for production quite yet.

Install

To get the API, you need to get Composer. Once you have Composer installed, run composer require team-reflex/ebot-api in your project directory. This will download the API so you can use it.

Usage

We are assuming that you have already imported the Composer autoload file into your project. If you have not done so, read the quick-start guide on the Composer website here.

Setting up

Firstly, you need to set up your config.

<?php

use Reflex\Config;

$file_directory = __DIR__;
$file_name = '.env';

Config::loadEnv($file_directory, $file_name);

There is a config example available here.

Afterwards, you should set up your capsule.

use Reflex\Database\Capsule;

$capsule = new Capsule;
$capsule->addAndBoot('hostname', 'username', 'password', 'database', 'prefix');

Instead of $capsule->addAndBoot() you can also do the following:

$capsule->addConnection('hostname', 'username', 'password', 'database', 'prefix');
$capsule->boot();

Interacting with eBot

More information can be found on the wiki on the right.

统计信息

  • 总下载量: 1.06k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-09-03