PHP code example of rene-roscher / teamspeak3-php-framework-laravel

1. Go to this page and download the library: Download rene-roscher/teamspeak3-php-framework-laravel 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/ */

    

rene-roscher / teamspeak3-php-framework-laravel example snippets


namespace Foo;
use TeamSpeak3\TeamSpeak3;

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

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