lrobert/nfo-server-status

A handy html parser for status pages on Nuclear Fallout Servers

v0.1.0 2015-05-30 00:18 UTC

This package is auto-updated.

Last update: 2024-04-16 07:26:57 UTC


README

NFO Server Status is a project designed to parse query pages on NFO servers so that you can add your own server statuses on your site or manipulate/track the data.

Installation

Install using Composer:

{
    "require": {
        "lrobert/nfo-server-status": "0.1.*"
    }
}

Note On Specifying Versions

The project is still in it's developmental stage, hence the major version number remaining at 0. The rules of semantic versioning state that changes to the minor number should not break backwards compatibility, however, during these early stages that cannot be guaranteed. But changes to the patch number will remain backwards compatible. As such it is recommended to specify version numbers where the minor number remains a constant. If in doubt, just use the version number specified in the example above.

Once the project reaches a stable 1.0.0, the regular rules of semantic versioning will come into play.

Usage

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
  */