jonnyynnoj / haxball-replay-parser
Parses a haxball replay file (.hbr)
1.0.3
2017-03-26 16:41 UTC
Requires
- php: >=5.5
- mdurrant/php-binary-reader: ^1.0.8
This package is auto-updated.
Last update: 2024-10-29 03:53:32 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);