Download the PHP package keiwen/competition without Composer

On this page you can find all versions of the php package keiwen/competition. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package competition

Competition

A PHP library that allow competition management

Games

A 'game' is played with multiple players. They are several type of games:

Competition types

A competition is a set of games (all of the same type) managed by common rules. They are several type of competition:

Competition have a pre-determined number of round, which can contains several game but each player is affected to only one of them. Player rankings are available during the competition progress and updated after each game.

Teams

On a competition, you can freely define team compositions, giving the list of players that belongs to each team. This way, you can retrieve rankings for teams as well.

Group, phase and tree

Sometimes we may need to mix different types of competitions, and we often see a first part with round robin then a second part as a tournament with the best players of the first part. This is managed in 'trees', where each part are called 'phase'. Phases cannot be played in parallel, only one after the other. Each phase contains 1..n group(s) that are defined as a basic competition part. In previous example, we have have a first phase with x 'duels championship' competition inside, then a second phase with one 'Tournament' competition.

During a phase, each groups are played in parallel: all games of round 1 should be done in all group before going to any game of round 2.

When a phase ends, there are rules defining which players may be picked or not in following phase.

Builders and iterations

Builders are object that can prepare the competition. Here will be defined the ground rules of the competition (for example, points given for a win, loss or drawn). There are builders for group (or simple competition), phase and tree.

When all rules are set, you can start an 'iteration': defining the list of starting players, you can start to play games and set results. When a first iteration ends, you can simply reuse the same builder to start a second iteration: no need to set rules again.

ELO

Competition supports ELO system for players, as a single integer value that can be updated or using the Keiwen\Utils\Elo\EloRating object. If teams are defined, you can retrieve its ELO as the average ELO of its players.

Performances and expenses

In this library, all competitions are supporting performances and expenses. These are totally optional and can be defined freely when creating a competition.

Performances are data collected on each game for each player (for example, number of chocolate bars eaten during the game). Totals will be used for rankings tie-breaker. They are not determinant for the result of the game, except if explicitly set as this for competitions using performance games.

Expenses are collected on each game for each player (for example money spent in pyro for player entrance). Remaining budgets will be used for rankings tie-breaker.


All versions of competition with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-json Version *
keiwen/utils Version >=2.17
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package keiwen/competition contains the following files

Loading the files please wait ....