read($pairingfile); // From here on you can start. Please use the examples on https://github.com/jeroened/libpairtwo/wiki // You can also use the doc/api folder to get all possible methods and fields // Below is an example of what can be used. Feel free to modify this. echo '

' . $reader->Tournament->Name . '

' . PHP_EOL; foreach ($reader->Tournament->Rounds as $round) { echo '

Round ' . ($round->RoundNo + 1) . ': ' . $round->Date->format('m/d/Y') . '

' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; foreach ($round->GamesByBoard as $game) { echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; } echo '' . PHP_EOL; echo '
WhiteBlackResult
' . ($game->Board + 1) . '' . $game->White->Player->Name . '' . $game->Black->Player->Name . '' . $game->Result->getValue() . '
' . PHP_EOL; echo '

Bye: '; $bye = []; foreach ($round->Bye as $pairing) { $bye[] = $pairing->Player->Name; } echo implode('; ', $bye); echo '

' . PHP_EOL; echo '

Absent: '; $bye = []; foreach ($round->Absent as $pairing) { $bye[] = $pairing->Player->Name; } echo implode('; ', $bye); echo '

' . PHP_EOL; } echo '

Rankings

' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; foreach ($reader->Tournament->TieBreaks as $tiebreak) { echo '' . PHP_EOL; } echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; $rank = 1; foreach ($reader->Tournament->Ranking as $player) { echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; $rank++; } echo '' . PHP_EOL; echo '
Name (elo)' . $tiebreak->getValue() . '
' . $rank . '' . $player->Name . '(' . $player->getElo($reader->Tournament->PriorityElo) . ')' . implode('', $player->Tiebreaks) . '
' . PHP_EOL; ?>