PHP code example of estbase / round-robin

1. Go to this page and download the library: Download estbase/round-robin library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

estbase / round-robin example snippets


$schedule = Schedule::create(['A','B','C','D']);

$teams = ['A','B','C','D'];
$schedule = Schedule::create($teams);

$teams = ['A','B','C','D'];
$schedule = Schedule::create($teams, 5);

$teams = ['A','B','C','D'];
$rounds = (($count = count($teams)) % 2 === 0 ? $count - 1 : $count) * 2;
$schedule = Schedule::create($teams, $rounds);

$teams = ['A','B','C','D','E'];
$schedule = Schedule::create($teams);

$teams = ['A','B','C','D','E'];
$schedule = Schedule::create($teams, null, false);

$schedule = Schedule::createSchedule(['A','B','C','D'],null,true, false);

$schedule = Schedule::createSchedule(['A','B','C','D'],null,true, true, 9);