forge-media / forgetsm-php-framework
Clone of TS3 ADMIN PHP Framework 0.8.0.0 providing the library as composer project.
v1.0.1
2016-01-10 23:54 UTC
Requires
- php: >=5.5.9
This package is not auto-updated.
Last update: 2024-12-31 20:20:04 UTC
README
Clone of TS3 ADMIN PHP Framework 0.8.0.0 providing the library as composer project.
Usage
Install via composer:
"require": {
"forge-media/forgetsm-php-framework": "dev-master"
},
Skip the required_once part of official documentation and replace it with use API\TeamSpeak3 statement.
Examples:
$ts3_ip = '127.0.0.1'; $ts3_queryport = 10011; $ts3_port = 9987; require("../vendor/autoload.php"); #build a new ts3admin object $tsAdmin = new ts3admin($ts3_ip, $ts3_queryport); if($tsAdmin->getElement('success', $tsAdmin->connect())) { #select teamspeakserver $tsAdmin->selectServer($ts3_port); } }else{ echo 'Connection could not be established.'; }
For more information visit the official documentation.