Skip to content

jonnyynnoj/haxball-replay-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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