PHPackages                             bkmorse/sportstats - 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. bkmorse/sportstats

ActiveLibrary

bkmorse/sportstats
==================

Stat calculation for various sports

19PHP

Since Feb 15Pushed 11y ago1 watchersCompare

[ Source](https://github.com/bkmorse/sportstats)[ Packagist](https://packagist.org/packages/bkmorse/sportstats)[ RSS](/packages/bkmorse-sportstats/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/cde041e8c182df2b76dc9d9202f9c56dfd9e13746b14b6006d7669383eafefe2/68747470733a2f2f7472617669732d63692e6f72672f626b6d6f7273652f73706f727473746174732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bkmorse/sportstats/)

\#Sport Stats Stat calculations for various sports ####Install Require in composer.json:

`"bkmorse/sportstats": "1.1.*@dev"`

`Run composer update`

\####Example

```
require_once __DIR__ . '/vendor/autoload.php';
$baseball = \bkmorse\sportstats\Factory::create('\bkmorse\sportstats\Baseball');
print $baseball->battingAverage(50, 100); // batting average
print $baseball->sluggingPercentage(20, 32); // slugging percentage

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f67be807ce9875a418647ed52e3a80780e5efcd98c63ec68fa94d2166ee04ad?d=identicon)[bkmorse](/maintainers/bkmorse)

---

Top Contributors

[![bkmorse](https://avatars.githubusercontent.com/u/84529?v=4)](https://github.com/bkmorse "bkmorse (18 commits)")

### Embed Badge

![Health badge](/badges/bkmorse-sportstats/health.svg)

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

PHPackages © 2026

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