PHP code example of nick-strohm / laravel-ts3-php-framework
1. Go to this page and download the library: Download nick-strohm/laravel-ts3-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/ */
nick-strohm / laravel-ts3-php-framework example snippets
Route::get('/users', function (\TeamSpeak3_Node_Server $ts) {
$result = $ts->clientList();
dd($result);
});
bash
$ php artisan vendor:publish --provider=NickStrohm\laravel_ts3_php_framework\Providers\TeamspeakServiceProvider
TS_SERVER_HOST=127.0.0.1
TS_SERVER_PORT=9987
TS_SERVER_TIMEOUT=2
TS_QUERY_PORT=10011
TS_QUERY_USERNAME=serveradmin
TS_QUERY_PASSWORD=supersecretpassword