burak-sevinc/tournament-round-generator

一个用于生成锦标赛轮次的PHP库,包含有用的计算。

1.0.0 2024-01-15 19:47 UTC

This package is auto-updated.

Last update: 2024-09-16 07:03:16 UTC


README

Packagist Licence

一个用于生成锦标赛轮次的PHP库,包含有用的计算

入门

composer require burak-sevinc/tournament-round-generator

用法

单败淘汰示例

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

路线图

  • 单败淘汰
  • 双败淘汰

联系

Burak Sevinç - @buraksevincdev - info@buraksevinc.dev