PHPackages                             bizley/league - 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. bizley/league

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

bizley/league
=============

3.0.0(6y ago)110MITPHPPHP &gt;=7.1.0

Since Dec 17Pushed 6y ago2 watchersCompare

[ Source](https://github.com/bizley/league)[ Packagist](https://packagist.org/packages/bizley/league)[ RSS](/packages/bizley-league/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (1)Versions (13)Used By (0)

LEAGUE
======

[](#league)

This is simple foosball league project.

Implemented rules
-----------------

[](#implemented-rules)

- Every match needs 4 players divided into 2 teams: white and red.
- Every team contains of the defender and the attacker.
- Every player plays with and against every other player at all positions and sides.
- Every match ends when one of the teams (winner) scores 10 points.
- It's not possible for match to end with draw but it's possible for one of the teams to score no points (0).
- Each combinations of players, teams, and positions is unique in a season.
- If combinations of players, teams, and positions has already been played in the season the match is saved as next season match.

Installation
------------

[](#installation)

1. Install League using Composer:

    `composer create-project --prefer-dist bizley/league league`
2. Prepare virtual host pointing to `/public` directory. Make sure server's URL rewrite engine is on.
3. Prepare DB of your choice. You can find DB structure in `/src/structure.sql` file. Modify the SQL according to your DB engine if necessary.
4. Insert all the players in DB table `player`. Column `name` stores player's initials and must be unique, column `full` stores player's full name, and column `season` stores number of first season player joined the league.
5. Modify the `/src/config.php` file.

Stats
-----

[](#stats)

- Stats are calculated for a season.
- Player's place is set based on the average points.
- Best side and position are set based on the number of wins.
- Best and worst partners are counted based on the average points gained or lost in every match of the season.

Next match
----------

[](#next-match)

- Players available for next match are assigned to positions randomly.
- Match drawing is repeated until the drawn match has not been played before in the season.
- If all season combinations for available players have been already played next season match is drawn.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Every ~15 days

Recently: every ~5 days

Total

12

Last Release

2540d ago

Major Versions

1.2.0 → 2.0.02019-05-09

2.1.0 → 3.0.02019-05-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/b33b799410f9cb8d69a27bce7ae65d5c0a0aa8e097b2624c2f5315400d653b38?d=identicon)[bizley](/maintainers/bizley)

---

Top Contributors

[![orlikraf](https://avatars.githubusercontent.com/u/3663071?v=4)](https://github.com/orlikraf "orlikraf (1 commits)")

---

Tags

foosball-leaguehacktoberfestleague

### Embed Badge

![Health badge](/badges/bizley-league/health.svg)

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

###  Alternatives

[cweagans/composer-configurable-plugin

Provides a lightweight configuration system for Composer plugins.

101.9M2](/packages/cweagans-composer-configurable-plugin)[mpociot/chuck-norris-jokes

Create random Chuck Norris jokes.

261.2k](/packages/mpociot-chuck-norris-jokes)

PHPackages © 2026

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