PHP code example of lukasz-adamski / laravel-teamspeak3

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

    

lukasz-adamski / laravel-teamspeak3 example snippets


Adams\TeamSpeak3\TeamSpeak3ServiceProvider::class,

'TeamSpeak3' => Adams\TeamSpeak3\Facades\TeamSpeak3::class,



namespace App\Http\Controllers;

use App\Http\Controllers\Controller;

class TeamSpeak3Controller extends Controller
{
    /**
     * Show clients connected to TeamSpeak 3 server.
     *
     * @return Response
     */
    public function clients()
    {
        return view('teamspeak3.clients', [
            'clients' => TeamSpeak3::clientList()
        ]);
    }
}

php artisan vendor:publish --provider="Adams\TeamSpeak3\TeamSpeak3ServiceProvider"