PHP code example of hardwiregaming / ts3-php
1. Go to this page and download the library: Download hardwiregaming/ts3-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hardwiregaming / ts3-php example snippets
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);
}
}