A parser and dumper for the fide approved tournament report format: trf.
chessfy/trf is a Laravel package for a parser and dumper for the fide approved tournament report format: trf..
It currently has 2 GitHub stars and 1 downloads on Packagist.
Install it with composer require chessfy/trf.
Discover more Laravel packages by chessfy
or browse all Laravel packages to compare alternatives.
Last updated
A parser and dumper for the fide approved tournament report format: trf The trf file format is used by the Fide to report tournament results and calculate elo ratings based on them.
use Chessfy\Trf\Trf;
$trf = new Trf();
$tour = $trf->load(__DIR__."/data/real.trf");
$players = [];
foreach ($tour->players as $player) {
$players[] = ($player->name. ' - '. $player->points);
}
echo $tour->name;
dd($players);