Download the PHP package phelix/tournaments without Composer
On this page you can find all versions of the php package phelix/tournaments. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phelix/tournaments
More information about phelix/tournaments
Files in phelix/tournaments
Informations about the package tournaments
Tournament by Phelix Juma
This is a PHP package for tournament management
Included Services
- Ranking
- Single Elimination
- Double Elimination
- Round Robin
- Bracket Groups (round robin, single elimination and double elimination groups)
- Tournament Generator (coming soon...)
Installation
composer require phelix/tournaments
How To test
There are sample test cases shipped with the package. You can run the tests using the command below:
vendor/bin/phpunit test
Documentation
1. Ranking in a Round Robin
This is where all players play in a given round robin stage ie each player must play against each of the other opponents
1. Single Elimination
This is where players are in a single stage single elimination ie you lose and you're eliminated immediately
3. Double Elimination
Use this where it's a single stage tournament ranking where players are in a DE ie lose twice to be eliminated
4. Pool
Use this if, within a stage, players are put into different groups/pools eg Pool A, Pool B et al.
The pools can implement either a round robin, single elimination or double elimination bracket.
The data structure within a pool thus resembles the data structure for its bracket type so the structures already shown for each of the tournament types above would suffice
5. Multi Stage Duel Tournament
Use this to generate an overall rank for an entire tournament
This can be used where players progress from one stage to the next
Each stage can implement either of round robin, single elimination, double elimination or bracket groups. Because each stage is independent, it is possible to have different bracket types in each stage.
6. Battle Royale
Use this to generate ranking in a battle royale match
7. Battle Royale (Pools)
Use this to generate ranking in a battle royale match where players are grouped in different pools
This can be used where players progress from one stage to the next
Each stage can implement either of round robin, single elimination, double elimination or bracket groups. Because each stage is independent, it is possible to have different bracket types in each stage.
8. Battle Royale Tournament
Use this to generate ranking in a battle royale tournament
This can be used where players progress from one stage to the next
Each stage can implement either of battle royale or battle royale pool. Because each stage is independent, it is possible to have different bracket types in each stage.
Changelog
- v1.0.0 First Release
- v1.0.1 Added a Fix to include draw points in round robin
- v1.0.2 Added Battle Royale Matches
Credits
- Phelix Juma from Kuza Lab Ltd ([email protected])