PHPackages                             shooglypeg/teams - 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. shooglypeg/teams

ActiveLibrary

shooglypeg/teams
================

team names and data

v0.14(3y ago)022PHPPHP ^8.0

Since Jul 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/pedros80/shooglypeg-teams)[ Packagist](https://packagist.org/packages/shooglypeg/teams)[ RSS](/packages/shooglypeg-teams/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (5)Dependencies (6)Versions (7)Used By (0)

ShooglyPeg - Teams
==================

[](#shooglypeg---teams)

[![Code Coverage Badge](./coverage_badge.svg)](./coverage_badge.svg)

Class to model team names with code generation from a csv of

- canonical name
- optional short name
- list of potential typos and different spellings
- is this team non-league?

```
// these three are equivalent
$name  = new TeamName('Airdrieonians'); // Canonical name
$short = new TeamName('Airdrie'); // Short name
$typo  = new TeamName('Airdrie United'); // Out of date might get from an external source

$name->short(); // return Airdrie

$name   = TeamName::random(); // a random team
$league = TeamName::league(); // an array of all current league teams
$all    = TeamName::all(); // an array of all current league teams plus any non-league teams recently in the league
```

Extends [`Name`](https://github.com/pedros80/shooglypeg-valueobjects/blob/main/src/Name.php) so can also...

```
$name = new TeamName(TeamName::HEART_OF_MIDLOTHIAN);
$name->slug(); // heart--of--midlothian

$name = new TeamName(TeamName::QUEENS_PARK);
$name->slug(); // queen-s--park

$name = TeamName::fromSlug('raith--rovers');
```

Class is generated from a csv like the following.

```
"Aberdeen",
"Airdrieonians","Airdrie","Airdrie United"
"Albion Rovers","Albion"
"Alloa Athletic","Alloa"
"Annan Athletic","Annan
"Arbroath"
"Ayr United","Ayr","Ayr Utd"
"Bonnyrigg Rose Athletic","Bonnyrigg"
"Berwick Rangers","Berwick","NONLEAGUE"

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65% 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 ~20 days

Total

5

Last Release

1307d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/24765e8558f3cec0ee491de711650fe91b448327fbe0e65d1ef5eb40b787234f?d=identicon)[shooglypeg](/maintainers/shooglypeg)

---

Top Contributors

[![petersgecko](https://avatars.githubusercontent.com/u/40264802?v=4)](https://github.com/petersgecko "petersgecko (13 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/shooglypeg-teams/health.svg)

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

PHPackages © 2026

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