2017 © Pedro PelĂĄez
 

library round-robin

RoundRobin for Laravel 5.4+.

image

jjsquady/round-robin

RoundRobin for Laravel 5.4+.

  • Thursday, April 27, 2017
  • by jjsquady
  • Repository
  • 1 Watchers
  • 0 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 14 % Grown

The README.md

Round-Robin (Laravel 5 Package)

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Round-Robin is an easy way to create schedule with round-robin(rr) technique. I used the mnito's base code for this. Look here: https://github.com/mnito/round-robin, (*2)

Installation

1) In order to install Laravel Round-Robin, just add the following to your composer.json. Then run composer update:, (*3)

"marcelotk15/round-robin": "0.1.*"

or run composer require marcelotk15/round-robin, (*4)

2) Open your config/app.php and add the following to the providers array:, (*5)

Laravel\RoundRobin\RoundRobinServiceProvider::class,

3) Open your config/app.php and add the following to the facades array:, (*6)

'RoundRobin' => Laravel\RoundRobin\RoundRobinFacade::class,

Controllers and etc

use Laravel\RoundRobin\RoundRobin;

Using (Examples)

Setuping (without Facade):, (*7)

$teams = ['Arsenal', 'Atlético de Madrid', 'Borussia', 'Barcelona','Liverpool', 'Bayer 04', 'Real Madrid'];
$schedule = new RoundRobin($teams)->make();
// or with 'from' static method
$schedule = RoundRobin::from($teams)->make();

With a facade:, (*8)

$teams = ['Arsenal', 'Atlético de Madrid', 'Borussia', 'Barcelona','Liverpool', 'Bayer 04', 'Real Madrid'];
$schedule = RoundRobin::from($teams)->make();

Generate a schedule without randomly shuffling the teams using the $shuffle boolean parameter:, (*9)

$teams = ['Arsenal', 'Atlético de Madrid', 'Borussia', 'Barcelona','Liverpool', 'Bayer 04', 'Real Madrid'];
$schedule = RoundRobin::from($teams)->doNotShuffle()->make();

Use your own seed with the $seed integer parameter for predetermined shuffling:, (*10)

$teams = ['Arsenal', 'Atlético de Madrid', 'Borussia', 'Barcelona','Liverpool', 'Bayer 04', 'Real Madrid'];
$schedule = RoundRobin::from($teams)->shuffle(15)->make();

If you want a double Round-robin:, (*11)

$teams = ['Arsenal', 'Atlético de Madrid', 'Borussia', 'Barcelona','Liverpool', 'Bayer 04', 'Real Madrid'];
$schedule = RoundRobin::from($teams)->doubleRoundRobin()->make();

If you want a get a Schedule Object:, (*12)

$teams = ['Arsenal', 'Atlético de Madrid', 'Borussia', 'Barcelona','Liverpool', 'Bayer 04', 'Real Madrid'];
$schedule = RoundRobin::from($teams)->makeSchedule();

License

Laravel Round-Robin is free software distributed under the terms of the MIT license., (*13)

The Versions

27/04 2017

dev-master

9999999-dev

RoundRobin for Laravel 5.4+.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marcelo Augusto

laravel roundrobin

11/03 2017

dev-dev

dev-dev

RoundRobin for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marcelo Augusto

laravel roundrobin

11/03 2017

dev-analysis-8QDGnw

dev-analysis-8QDGnw

RoundRobin for Laravel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Marcelo Augusto

laravel roundrobin

18/02 2017

0.1.0

0.1.0.0

RoundRobin for Laravel.

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

The Development Requires

by Marcelo Augusto

laravel roundrobin

17/02 2017

0.0.1

0.0.1.0

RoundRobin for Laravel.

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

The Development Requires

by Marcelo Augusto

laravel roundrobin