Laravel Tournaments is A Laravel 5.4 Package that allows you to generate Tournaments tree
- Generate Direct Elimination Trees
- Generate Direct Elimination with Preliminary Round
- Change Preliminary Round Size
- Use 1 to 8 Areas
- Modify Direct Elimination Tree generation on the fly
- Use teams instead of competitors
- Generate a list of fights
This is a work in progress, and tree creation might be very complex, so there is a bunch of things to achieve.
- Modify Preliminary Round generation on the fly
- Manage Winner and third place fight
- Manage more than 1 fighter out of preliminary round
- Manage n+1 case : When for instance, there is 17 competitors in a direct elimination tree, there will have 15 BYES. We can improve that making the first match with 3 competitors.
- Use any number of area ( restricted to 1,2,4,8)
This is still a work in progress. Things could change, things could break. Use it at your own risks in production
First, you'll need to install the package via Composer:
$ composer require "xoco70/laravel-tournaments":^0.11
Then, update config/app.php
by adding an entry for the service provider.
'providers' => [
// ...
Xoco70\KendoTournaments\TournamentsServiceProvider::class,
];
Finally, from the command line again, publish the default configuration file:
php artisan vendor:publish
To run the demo, you need to generate Tournaments, Championships, Users, Competitors and Settings
Run Migrations:
php artisan migrate
Seed dummy data:
php artisan db:seed
You will be able to access the demo at https://yourdomain.com/kendo-tournaments
vendor/bin/phpunit tests