PHPackages                             glaivepro/iaafpoints - 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. glaivepro/iaafpoints

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

glaivepro/iaafpoints
====================

PHP library to calculate World Athletics (IAAF) scoring points of athletics and World Athletics (IAAF) scoring points for combined events.

1.2.2(1y ago)22647↓50%3[2 issues](https://github.com/GlaivePro/IaafPoints/issues)MITPHPPHP &gt;=8.0 &lt;8.5CI passing

Since Sep 2Pushed 1y ago4 watchersCompare

[ Source](https://github.com/GlaivePro/IaafPoints)[ Packagist](https://packagist.org/packages/glaivepro/iaafpoints)[ Docs](https://github.com/GlaivePro/IaafPoints)[ RSS](/packages/glaivepro-iaafpoints/feed)WikiDiscussions master Synced 1mo ago

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

IaafPoints
==========

[](#iaafpoints)

PHP library to calculate World Athletics (IAAF) scoring points of athletics and WA (IAAF) scoring points for combined events. And some other evaluations of track and field results.

> IAAF is rolling a rebrand to WA, but we currently have no plans to rename the package or any of classes.

The WA scoring tables that we reproduce are these ones:

This package is used for the stats system of [Latvian Athletics Association](https://athletics.lv).

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
- [Changelog](#changelog)
- [License](#license)

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

[](#installation)

Use composer:

```
composer require glaivepro/iaafpoints
```

Usage
-----

[](#usage)

This package provides mutliple calculators that all provide the same interface.

```
// Calculator and use-case specific options.
$options = [
	'gender' => 'm',
	'venueType' => 'outdoor',
	'discipline' => '200m',
];

// Create a calculator instance
$calculator = new \GlaivePro\IaafPoints\IaafCalculator($options);

// Evaluate a result getting some points or a class assigned to result.
$points = $calculator->evaluate(21.61);
// 980

// Update options
$calculator->setOptions(['gender' => 'f']);
$points = $calculator->evaluate(21.61);
// 1279
```

See [docs](docs) for more details.

Contributing
------------

[](#contributing)

Important

Do not edit anything in `data/`, edit it in `resources/`. The files in `data/`are auto-generated from files in `resources/`.

More [here](CONTRIBUTING.md).

Changelog
---------

[](#changelog)

It's [here](CHANGELOG.md).

License
-------

[](#license)

This package is licensed under the [MIT license](LICENSE.md).

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance45

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity90

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 94.5% 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 ~163 days

Recently: every ~199 days

Total

18

Last Release

403d ago

Major Versions

0.7.2 → 1.0.02021-05-17

PHP version history (4 changes)0.1.0PHP &gt;=5.6.0

1.0.0PHP &gt;=8.0

1.2.0PHP &gt;=8.0 &lt;8.4

1.2.2PHP &gt;=8.0 &lt;8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/6674d01479885d0c1929e0529fd4aa68aaf2ca8e4816c774b55ea584de900135?d=identicon)[tontonsb](/maintainers/tontonsb)

---

Top Contributors

[![tontonsb](https://avatars.githubusercontent.com/u/16481303?v=4)](https://github.com/tontonsb "tontonsb (138 commits)")[![atlets](https://avatars.githubusercontent.com/u/31772961?v=4)](https://github.com/atlets "atlets (6 commits)")[![divan](https://avatars.githubusercontent.com/u/880202?v=4)](https://github.com/divan "divan (1 commits)")[![jeepers](https://avatars.githubusercontent.com/u/317116?v=4)](https://github.com/jeepers "jeepers (1 commits)")

---

Tags

combined-eventshacktoberfestiaafiaaf-scores-calculatoriaaf-scoring-pointsphp-libraryiaaftrack and fieldathleticsscoring tablesworld athletics

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/glaivepro-iaafpoints/health.svg)

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

PHPackages © 2026

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