burak-sevinc / tournament-round-generator
一个用于生成锦标赛轮次的PHP库,包含有用的计算。
1.0.0
2024-01-15 19:47 UTC
Requires
- php: ^7.4|^8.0|^8.1
Requires (Dev)
- phpunit/phpunit: ^10.5.7
README
一个用于生成锦标赛轮次的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