PHP code example of lrobert / nfo-server-status
1. Go to this page and download the library: Download lrobert/nfo-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/ */
lrobert / nfo-server-status example snippets
{
" "lrobert/nfo-server-status": "0.1.*"
}
}
use lrobert\NFOServerStatus\Murmur\MurmurStatusService;
$murmurStatusService = new MurmurStatusService();
$status = $murmurStatusService->getStatus("example_identifier");
echo $status->getOnline(); // false since example_identifier does not exist
/**
* See MurmurStatusModel, MurmurChannelModel, and MurmurClientModel on how you can get access to the data
*/