2017 © Pedro Peláez
 

library php-teamspeak

A simple teampseak client module for PHP7+

image

chillerlan/php-teamspeak

A simple teampseak client module for PHP7+

  • Thursday, February 1, 2018
  • by codemasher
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

chillerlan/php-teamspeak

A simple TS3 query client for PHP7.4+., (*1)

PHP Version Support ![version][packagist-badge] license ![Scrunitizer][scrutinizer-badge] ![Packagist downloads][downloads-badge]br/ Continuous Integration, (*2)

Documentation

Installation

requires composer, (*3)

composer.json (note: replace dev-main with a version boundary), (*4)

{
    "require": {
        "php": "^7.4 || ^8.0",
        "chillerlan/php-teamspeak": "dev-main"
    }
}

Profit!, (*5)

Usage

use chillerlan\Teamspeak\{TS3Config, TS3Client};

$options = new TS3Config([
    'host'           => 'localhost',
    'port'           => 10011,
    'vserver'        => 1,
    'query_user'     => 'query',
    'query_password' => 'supersecretpassword',
    'minLogLevel'    => 'debug',
]);

$ts3 = new TS3Client($options);
$ts3->connect();

$serverInfo = $ts3->send('serverinfo');

var_dump($serverInfo->parseList());

$channelList = $ts3->send('channellist', ['topic', 'limits', 'flags', 'voice', 'icon', 'secondsempty']);
var_dump($channelList->parseList());

$clientList = $ts3->send('clientlist', ['uid', 'away', 'voice', 'times', 'groups', 'info', 'icon', 'country']);
var_dump($clientList->parseList());

// ...

The Versions

01/02 2018

dev-master

9999999-dev

A simple teampseak client module for PHP7+

  Sources   Download

MIT

The Requires

 

The Development Requires

client teamspeak