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->White->Player->getElo($reader->Tournament->PriorityElo) . ')' . $game->Black->Player->Name . ' (' . $game->Black->Player->getElo($reader->Tournament->PriorityElo) . ')' . $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 '

Global 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; echo '' . PHP_EOL; $rank++; } echo '' . PHP_EOL; echo '
Name (elo)Category' . $tiebreak->getValue() . '
' . $rank . '' . $player->Name . ' (' . $player->getElo($reader->Tournament->PriorityElo) . ')' . $player->Category . '' . implode('', $player->Tiebreaks) . '
' . PHP_EOL; ?> Rankings per Category' . PHP_EOL; foreach ($reader->Tournament->Categories as $category) { echo '' . PHP_EOL; echo ''; 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->RankingForCategory($category) as $player) { echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; $rank++; } echo '' . PHP_EOL; echo '
' . $category . '
Name (elo)' . $tiebreak->getValue() . '
' . $rank . '' . $player->Name . ' (' . $player->getElo($reader->Tournament->PriorityElo) . ')' . implode('', $player->Tiebreaks) . '
' . PHP_EOL; } ?>