Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.16 KB

README.md

File metadata and controls

44 lines (27 loc) · 1.16 KB

Tournament Round Generator

Packagist Licence

A PHP library for generating tournament rounds with helpful calculations

Getting Started

composer require burak-sevinc/tournament-round-generator

Usage

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();

Roadmap

  • Single elimination
  • Double elimination

Contact

Burak Sevinç - @buraksevincdev - [email protected]