chessfy/trf

A parser and dumper for the fide approved tournament report format: trf.

dev-main 2021-11-18 22:28 UTC

This package is auto-updated.

Last update: 2024-04-19 03:24:38 UTC


README

This repo is a clone of https://github.com/sklangen/TRF repository using php.

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.

Simple usage exmaple

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