burak-sevinc/tournament-round-generator

A PHP library for generating tournament rounds with helpful calculations.

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/burak-sevinc/tournament-round-generator

1.0.0 2024-01-15 19:47 UTC

This package is auto-updated.

Last update: 2025-10-16 09:32:21 UTC


README

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 - info@buraksevinc.dev