jonnyynnoj / haxball-replay-parser

Parses a haxball replay file (.hbr)

Home Page:http://fm-haxball.co.uk/index.php?page=replay-parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Haxball Replay Parser

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);

About

Parses a haxball replay file (.hbr)

http://fm-haxball.co.uk/index.php?page=replay-parser


Languages

Language:PHP 100.0%