PHP code example of forge-media / forgetsm-php-framework
1. Go to this page and download the library: Download forge-media/forgetsm-php-framework 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/ */
forge-media / forgetsm-php-framework example snippets
$ts3_ip = '127.0.0.1';
$ts3_queryport = 10011;
$ts3_port = 9987;
s3_queryport);
if($tsAdmin->getElement('success', $tsAdmin->connect())) {
#select teamspeakserver
$tsAdmin->selectServer($ts3_port);
}
}else{
echo 'Connection could not be established.';
}