rene-roscher/teamspeak3-php-framework-laravel

There is no license information available for the latest version (1.3) of this package.

1.3 2020-08-18 23:05 UTC

This package is auto-updated.

Last update: 2024-03-29 04:18:50 UTC


README

Clone of TS3 PHP Framework 1.1.newest i guess? providing the library as composer project including namespaces and follow the PSR-4 Standard.

Usage

Install via composer:

"require": {
    "rexlmanu/teamspeak3-php-framework-laravel": "dev-master"
},

Skipp the required_once part of official documentation and replace it with use TeamSpeak3\TeamSpeak3 statement.

Examples:

namespace Foo;
use TeamSpeak3\TeamSpeak3;

class TeamSpeak3Adapater
{
    private $ts3;
    public __construct()
    {
        $this->ts3 = TeamSpeak3::factory("serverquery://username:password@127.0.0.1:10011/?server_port=9987");
    }

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

For more information visit the official documentation.