jonnyynnoj/haxball-replay-parser

Parses a haxball replay file (.hbr)

Installs: 93

Dependents: 0

Suggesters: 0

Security: 0

Stars: 8

Watchers: 2

Forks: 3

Open Issues: 1

pkg:composer/jonnyynnoj/haxball-replay-parser

1.0.3 2017-03-26 16:41 UTC

This package is auto-updated.

Last update: 2025-09-29 02:20:52 UTC


README

Parses a haxball replay file

composer require jonnyynnoj/haxball-replay-parser

Usage

$file = fopen('path\to\replay.hbr', 'r');
// OR
$file = file_get_contents('path\to\replay.hbr');

$parser = new ReplayParser\Parser($file);
$replay = $parser->parse();

Output as JSON:

echo json_encode($replay);