Download the PHP package mnito/round-robin without Composer
On this page you can find all versions of the php package mnito/round-robin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mnito/round-robin
More information about mnito/round-robin
Files in mnito/round-robin
Download mnito/round-robin
More information about mnito/round-robin
Files in mnito/round-robin
Vendor mnito
Package round-robin
Short Description Round-robin schedule generation implementation in PHP
License MIT
Homepage https://github.com/mnito/round-robin
Package round-robin
Short Description Round-robin schedule generation implementation in PHP
License MIT
Homepage https://github.com/mnito/round-robin
Please rate this library. Is it a good library?
Informations about the package round-robin
round-robin
Round-robin schedule generation reference implementation for PHP 7 licensed under the MIT license
Features
- Efficient schedule generation enabled by an efficient round-robin rotation function
- Ability to generate an arbitrary number of rounds
- Support for any number of teams by adding a bye for odd-numbered team counts
- Simple, concise implementation for easy analysis of the algorithm
- Unit tested
- Documented
- Modern PHP 7 code
- Object-oriented and procedural APIs
Basic Usage
Generating Common Schedules
Generate a random schedule where each player meets every other player once:
or
Generate a random home-away schedule where each player meets every other player twice, once at home and once away, using the $rounds integer parameter:
or
Generate a schedule without randomly shuffling the teams using the $shuffle boolean parameter:
or
Use your own seed with the $seed integer parameter for predetermined shuffling:
or
Looping Through A Schedule
Looping Through the Full Schedule
Setup:
or
Loop through:
Looping Through Team Schedules
License
MIT License
Author
Michael P. Nitowski [[email protected]](mailto:[email protected])
All versions of round-robin with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
The package mnito/round-robin contains the following files
Loading the files please wait ....