定制 esports-academy/teamspeak-bundle 二次开发

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

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

esports-academy/teamspeak-bundle

Composer 安装命令:

composer require esports-academy/teamspeak-bundle

包简介

teamspeak service to connect to teamspeak-server and convert teamspeak events to symfony events

README 文档

README

Latest Stable Version Total Downloads License

This Bundle give you a connection to a TeamSpeak³-Server. It listen add events and triggered listener in your project.

Installation

Run composer require esports-academy/backup-bundle to use ESATeamSpeakBundle in your Project.

Configuration

Add to AppKernel.php

    class AppKernel extends Kernel
    {
        public function registerBundles()
        {
            $bundles = array(
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
            new Symfony\Bundle\TwigBundle\TwigBundle(),
            // ...
            new ESA\TeamSpeakBundle\ESATeamSpeakBundle(),
            // ...
            
            return $bundles;
        }
        // ...
    }

config.yml

    esa_team_speak:
        host: ts.es-a.org       // TeamSpeak-IP
        port: 9987              // TeamSpeak-Port
        query_port: 10011       // Serverquery-Port
        username: serverquery   // Serverquery-Username
        password: p4ssw0rd      // Serverquery-Password
        nickname: James         // Nickname
        timeout: 10             // Timeout in Seconds

Usage

Create your method

AppBundle/TeamSpeakBot/ClientListener.php

    class TeamSpeakBot {
        public function onClientEnterView($event) {
            // do stuff
        }
    }

Register your method

services.yml

    services:
        AppBundle\TeamSpeakBot\ClientListener:
            tags:
                - { name: kernel.event_listener, event: teamspeak.client_enter_view, method: onClientEnterView }            

Run the bot

To run the bot execute php bin/console teamspeak:bot:run or php bin/console teamspeak:bot:start for background job.

Roadmap

Here are some functions we will be include in future.

  • adding functions to manipulate the bot outisde of events

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-10-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固