nick-strohm/laravel-ts3-php-framework 问题修复 & 功能扩展

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

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

nick-strohm/laravel-ts3-php-framework

Composer 安装命令:

composer require nick-strohm/laravel-ts3-php-framework

包简介

planetteamspeak/ts3-php-framework integration for Laravel 9.0 and higher

README 文档

README

planetteamspeak/ts3-php-framework integration for Laravel 9.0 and higher

INFO: This package uses a singleton to access a single TeamSpeak3_Adapter_Abstract|TeamSpeak3_Node_Server.class-object. So you currently can't access multiple TeamSpeak3 servers!

Supported Laravel Versions

Laravel Version Supported
9.0 ✔️

Installation

This package will be autodiscovered, so no further setup is needed.

composer require nick-strohm/laravel-ts3-php-framework

Configuration

Copy configuration to config folder:

$ php artisan vendor:publish --provider=NickStrohm\laravel_ts3_php_framework\Providers\TeamspeakServiceProvider

Add environmental variables to your .env

TS_SERVER_HOST=127.0.0.1
TS_SERVER_PORT=9987
TS_SERVER_TIMEOUT=2
TS_QUERY_PORT=10011
TS_QUERY_USERNAME=serveradmin
TS_QUERY_PASSWORD=supersecretpassword

After completing all steps from above you should have a configuration file under: config/teamspeak.php. There you can configure some other aspects like the name of the ServerQuery.

Example

An example for a controller to the /clients endpoint that lists all connected clients.

Route::get('/users', function (\TeamSpeak3_Node_Server $ts) {
    $result = $ts->clientList();
    dd($result);
});

Credits

Based on Micky5991's library which integrates par0noid's ts3admin.class library

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2022-05-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固