Download the PHP package mission-gaming/tactician without Composer

On this page you can find all versions of the php package mission-gaming/tactician. 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 tactician

Tactician

PHP Version Build Status codecov

Overview

A PHP library that generates tournament schedules: who meets whom, in which round, and, when you ask for it, at what time. It covers round robin, Swiss, pot draws, single and double elimination and group stages, and it repairs a schedule that has fallen behind. It has no production dependencies.

Features

Each feature links to its section of the usage guide, except the last one, which is about the library as a whole.

Formats

Rules and quality

Results, time and repair

Foundations

Runnable examples of most of the above are in examples/; the usage guide describes the rest (role constraints and Swiss withdrawals).

Installation

Install via Composer:

Requirements:

Quick Start

Beyond Round Robin

Results feed standings, and standings drive the incremental engines for Swiss pairing, elimination brackets, and multi-stage tournaments. In the loop below, $participants is the list from the Quick Start and playRound() stands for your application playing a round and returning one Result per event:

The round is recorded when it is paired, before any result exists, so that a withdrawal or an adjustment made while it is played is recorded after it and the round is read as it was paired. Single and double elimination (SingleEliminationEngine, DoubleEliminationEngine) drive through the same loop, and so does a league held between rounds (RoundRobinEngine, whose rounds are the round-robin schedule's), and group stages compose from pools and progression selectors (PoolDistributor, RankRangeSelector, BestOfRankSelector, BracketQualifiersSelector, MatchOutcomeSelector) — see the usage guide. Stage state and schedules serialize to JSON (StageState::toJson(), $schedule->toJson()), so platforms persist between rounds instead of re-deriving. A platform that keeps its fixtures and results in its own tables stores no state and builds one from them on each request (StageState::fromHistory()): the rounds it holds are read as they are, and the engine derives only the next one.

Versioning and stability

Tactician follows Semantic Versioning with the 0.x allowance: until 1.0.0, a minor release may contain breaking changes. Every release is recorded in the changelog.

Supported PHP versions: ^8.4 (the Composer constraint). CI runs the suite on PHP 8.4 and 8.5.

Classes are final; the extension points are the interfaces. Every concrete class of the library is final, so a class is extended by no one and its with-ers return exactly that class. To change what the library does, implement one of its interfaces (Constraints\ConstraintInterface, LegStrategies\LegStrategyInterface, RoleAssignment\RoleAssignmentInterface, Standings\RankingStrategy, Standings\TiebreakerInterface, Stage\StageEngineInterface, Quality\QualityMetric and the others), or wrap a class of the library in one of your own. The one class left open is Exceptions\InvalidConfigurationException, which the library's own exceptions extend; catch it, and do not extend it. Making a class final that was not is a breaking change, made in a minor release before 1.0.0 (ADR 0022).

The rules above apply to every namespace. The two lists below say where breaking changes are expected. Namespaces are relative to MissionGaming\Tactician.

Stable (the API is settled and no breaking change is planned):

Experimental (still being designed; expected to change in a minor release before 1.0.0):

Anything not listed as stable is experimental, including the rest of Scheduling. Repack\Internal is internal: it is not public API and carries no compatibility guarantee. Neither does a class in any other namespace whose docblock is marked @internal (Stage\PairKey and Timeline\DateTimeString, for example).

Every class, interface, trait and enum in the library states its own status in its docblock, with exactly one of three annotations:

An architecture test (tests/Feature/StabilityAnnotationsTest.php) holds the annotations to the two lists above. It fails when a type has no annotation or more than one, when a type under a stable entry is @experimental or a type under an experimental entry is @api, and when a namespace is in neither list. A type under a stable entry cannot be @internal either, unless the stable list excludes it, as it does Repack\Internal. An experimental type can be, and the test pins which ones are.

Some stable signatures carry experimental types. For example, RoundRobinScheduler accepts a Constraints\ConstraintSet and returns a Stage\RoundRobinPlan from getPlan(), RoundRobinOptions carries a RoleAssignment\RoleAssignmentInterface, the leg strategies receive a Constraints\ConstraintSet and a Scheduling\SchedulingContext, and Exceptions\IncompleteScheduleException exposes Stage, Validation, and Diagnostics types. Those types are experimental, so the parts of a stable class that use them can change with them. The same goes for the two interfaces the stable round-robin classes implement, Scheduling\SchedulerInterface and Scheduling\SchedulerOptions: what RoundRobinScheduler and RoundRobinOptions offer is stable, and the interfaces, as types to implement or to type against, are experimental.

No public signature hands out or asks for an @internal type. A public method that a class takes from an @internal trait belongs to that class and has its status: getViolationCollector() on a scheduler is one. The members such a trait supplies that are not public are internal, like the trait.

Releases are cut with the release checklist.

Documentation

📝 Changelog - Release history and output changes
📚 Complete Usage Guide - Comprehensive examples and patterns
🧩 Laravel code
🏗️ Architecture - Technical design and core components
🛣️ Roadmap - What has shipped, known limitations and deferred work
📖 Contributing Guidelines - Development setup and contribution process
📚 Background - Mission Gaming story and problem space details

Sponsorship

Tag1 Consulting

Initial development of this library was sponsored by Tag1 Consulting, the absolute legends.
Tag1 blog & Tag1TeamTalks Podcast

License

This project is licensed under the MIT License - see the LICENSE file for details.


All versions of tactician with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
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 mission-gaming/tactician contains the following files

Loading the files please wait ...