jonnyynnoj/haxball-replay-parser

Parses a haxball replay file (.hbr)

Maintainers

Package info

github.com/jonnyynnoj/haxball-replay-parser

pkg:composer/jonnyynnoj/haxball-replay-parser

Statistics

Installs: 93

Dependents: 0

Suggesters: 0

Stars: 8

Open Issues: 1

1.0.3 2017-03-26 16:41 UTC

This package is auto-updated.

Last update: 2026-03-01 00:10:43 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);