2017 © Pedro Peláez
 

library iaafpoints

PHP library to calculate IAAF scoring points of athletics and IAAF scoring points for combined events.

image

glaivepro/iaafpoints

PHP library to calculate IAAF scoring points of athletics and IAAF scoring points for combined events.

  • Friday, May 11, 2018
  • by tontonsb
  • Repository
  • 3 Watchers
  • 5 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

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., (*1)

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

The WA scoring tables that we reproduce are these ones: https://www.worldathletics.org/about-iaaf/documents/technical-information#collapsescoring-tables, (*3)

This package is used for the stats system of Latvian Athletics Association., (*4)

Table of Contents

Installation

Use composer:, (*5)

composer require glaivepro/iaafpoints

Usage

This package provides mutliple calculators that all provide the same interface., (*6)

// 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 for more details., (*7)

Contributing

[!IMPORTANT] Do not edit anything in data/, edit it in resources/. The files in data/ are auto-generated from files in resources/., (*8)

More here., (*9)

Changelog

It's here., (*10)

License

This package is licensed under the MIT license., (*11)

The Versions

11/05 2018

dev-master

9999999-dev https://github.com/GlaivePro/IaafPoints

PHP library to calculate IAAF scoring points of athletics and IAAF scoring points for combined events.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

iaaf track and field athletics scoring tables

11/05 2018

0.7.1

0.7.1.0 https://github.com/GlaivePro/IaafPoints

PHP library to calculate IAAF scoring points of athletics and IAAF scoring points for combined events.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

iaaf track and field athletics scoring tables

11/05 2018

0.7.0

0.7.0.0 https://github.com/GlaivePro/IaafPoints

PHP library to calculate IAAF scoring points of athletics and IAAF scoring points for combined events.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

iaaf track and field athletics scoring tables

07/11 2017

0.6.3

0.6.3.0 https://github.com/GlaivePro/IaafPoints

PHP library to calculate IAAF scoring points of athletics and IAAF scoring points for combined events.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

iaaf track and field athletics scoring tables

06/11 2017

0.6.2

0.6.2.0 https://github.com/GlaivePro/IaafPoints

PHP library to calculate IAAF scoring points of athletics and IAAF scoring points for combined events.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

iaaf track and field athletics scoring tables

10/10 2017

0.6.1

0.6.1.0 https://github.com/GlaivePro/IaafPoints

PHP library to calculate IAAF scoring points of athletics and IAAF scoring points for combined events.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

iaaf track and field athletics scoring tables

26/09 2017

0.6.0

0.6.0.0 https://github.com/GlaivePro/IaafPoints

PHP library to calculate IAAF scoring points of athletics and IAAF scoring points for combined events.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

iaaf track and field athletics scoring tables

07/09 2017

0.5.0

0.5.0.0 https://github.com/GlaivePro/IaafPoints

PHP library to calculate IAAF scoring points of athletics and IAAF scoring points for combined events.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

iaaf track and field athletics scoring tables

07/09 2017

0.4.0

0.4.0.0 https://github.com/GlaivePro/IaafPoints

PHP library to calculate IAAF scoring points of athletics and IAAF scoring points for combined events.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

iaaf track and field athletics scoring tables

06/09 2017

0.3.0

0.3.0.0 https://github.com/GlaivePro/IaafPoints

PHP library to calculate IAAF points.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

iaaf track and field athletics scoring tables

02/09 2017

0.2.0

0.2.0.0 https://github.com/GlaivePro/IaafPoints

PHP library to calculate IAAF points.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

iaaf track and field athletics scoring tables

02/09 2017

0.1.0

0.1.0.0 https://github.com/GlaivePro/IaafPoints

PHP library to calculate IAAF points.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

iaaf track and field athletics scoring tables