chessfy/trf

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

Maintainers

Package info

github.com/chessfy/trf

pkg:composer/chessfy/trf

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-03-19 07:50:08 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);