PHP code example of wilianmaique / cstrike-rcon-client

1. Go to this page and download the library: Download wilianmaique/cstrike-rcon-client 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/ */

    

wilianmaique / cstrike-rcon-client example snippets



WilianMaique\RconClient\RconClient;

$rcon = new RconClient('177.0.0.0', '123', '27015');

// using the text protocol
echo $rcon->exec('stats');

// using the binary protocol
var_dump($rcon->getInfo());