PHPackages                             ilmala/tourney - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ilmala/tourney

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ilmala/tourney
==============

A simple random tournament generator

0.1.1(3y ago)09MITPHPPHP ^8.1

Since Oct 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ilmala/tourney)[ Packagist](https://packagist.org/packages/ilmala/tourney)[ Docs](https://github.com/ilmala/tourney)[ RSS](/packages/ilmala-tourney/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Tourney
=======

[](#tourney)

A simple random tournament generator

Features:

- From 3 to 30 teams tournament
- Even and Odd team number with rest turn

How to use:

```
use Tourney\Tourney;

$teamNames = [
    'Bayern Monaco',
    'Olimpia Milano',
    'Partizan',
    'Virtus Bologna'
];

$tournament = (new Tourney())->generate(
    participants: $teams,
);
```

Print out results:

```
// Basic Loop
foreach ($tournament->turns() as $turn) {
    echo "Turn {$turn->number()}";
    foreach ($turn->games() as $game) {
        echo "{$game->description()}";
    }
    echo "";
}
```

Team can be an instance of `Tourney\Models\Team` class:

```
$team = new \Tourney\Models\Team(
    name: 'Olimpia Milano',
    key: 'OM-01',
);

$team->name(); // The name of the Team
$team->key(); // Maybe a reference key of your application team model
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1343d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1785041?v=4)[Luca Malattia](/maintainers/ilmala)[@ilmala](https://github.com/ilmala)

---

Top Contributors

[![ilmala](https://avatars.githubusercontent.com/u/1785041?v=4)](https://github.com/ilmala "ilmala (2 commits)")

---

Tags

generatortournament

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/ilmala-tourney/health.svg)

```
[![Health](https://phpackages.com/badges/ilmala-tourney/health.svg)](https://phpackages.com/packages/ilmala-tourney)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[illuminate/events

The Illuminate Events package.

13557.0M2.1k](/packages/illuminate-events)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.5k](/packages/illuminate-database)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/session

The Illuminate Session package.

9939.3M847](/packages/illuminate-session)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.2M208](/packages/illuminate-broadcasting)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
