A PHP library for generating tournament rounds with helpful calculations
composer require burak-sevinc/tournament-round-generator
Single elimination examples:
use BurakSevinc\TournamentRoundGenerator\SingleElimination;
$teamCount = 8;
$singleElimination = new SingleElimination($teamCount);
$roundCount = $singleElimination->getRoundCount();
$roundsArr = $singleElimination->getRounds();
$matches = $singleElimination->getMatches();
$roundOne = $singleElimination->getMatchesByRoundId(1);
$withNextMatchId = $singleElimination->addNextMatchId();
- Single elimination
- Double elimination
Burak Sevinç - @buraksevincdev - [email protected]