Skip to content

A PHP library for generating tournament rounds with helpful calculations

License

Notifications You must be signed in to change notification settings

burak-sevinc/tournament-round-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

A PHP library for generating tournament rounds with helpful calculations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages