chessfy / trf
A parser and dumper for the fide approved tournament report format: trf.
dev-main
2021-11-18 22:28 UTC
Requires
- php: ^7.4
- illuminate/contracts: ^8.37
- spatie/laravel-package-tools: ^1.4.3
Requires (Dev)
- nunomaduro/collision: ^5.3
- orchestra/testbench: ^6.15
- pestphp/pest: ^1.18
- pestphp/pest-plugin-laravel: ^1.1
- spatie/laravel-ray: ^1.23
- vimeo/psalm: ^4.8
This package is auto-updated.
Last update: 2025-05-19 05:49:35 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.
- Specification: https://www.fide.com/FIDE/handbook/C04Annex2_TRF16.pdf
- Example: http://ratings.fide.com/download/example1.txt
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);