PHP code example of randomhost / mcstat

1. Go to this page and download the library: Download randomhost/mcstat 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/ */

    

randomhost / mcstat example snippets



namespace randomhost\Minecraft;

');
var_dump($status->ping());

make test