Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 767 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 767 Bytes

Introduction

Clone of TS3 PHP Framework 1.1.23 providing the library as composer project including namespaces and follow the PSR-4 Standard.

Usage

Install via composer:

"require": {
    "hardwiregaming/teamspeak-php-framework": "~1.1"
},

Example:

namespace Foo;
use TeamSpeak3\TeamSpeak3;

class TeamSpeak3Adapater
{
    private $ts;
    public __construct()
    {
        $this->ts3 = TeamSpeak3::factory("serverquery://username:[email protected]:10011/?server_port=9987");
    }

    public writeMessage($message)
    {
        $this->ts3->message($message);
    }
}

For more information visit the official documentation.