PHP code example of lukasss93 / minecraft-server-status

1. Go to this page and download the library: Download lukasss93/minecraft-server-status 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/ */

    

lukasss93 / minecraft-server-status example snippets



	//using the class
	use MCServerStatus\MCPing;
	
	//include composer autoload
	ons from object
	var_dump($response);
	
	//or from array
	var_dump($response->toArray());


	//using the class
	use MCServerStatus\MCQuery;
	
	//include composer autoload
	ons from object
	var_dump($response);
	
	//or from array
	var_dump($response->toArray());