icewind/demoparser

Parser for HL2 demo files

0.1 2014-10-24 16:47 UTC

This package is auto-updated.

Last update: 2024-12-18 18:18:58 UTC


README

Build Status

Parser for HL2 demo files

Usage

$parser = new Icewind\DemoParser\Parser();
$info = $parser->parseFile('my_demo_file.dem');

echo 'Player: ' . $info->getNick() . "\n";
echo 'Map: ' . $info->getMap() . "\n";
echo 'Duration: ' . floor($info->getDuration()) . " seconds \n";