{"id":21107246,"url":"https://github.com/glaivepro/iaafpoints","last_synced_at":"2025-07-08T16:31:36.225Z","repository":{"id":56983230,"uuid":"102184380","full_name":"GlaivePro/IaafPoints","owner":"GlaivePro","description":"PHP library to calculate IAAF scoring points of athletics and IAAF scoring points for combined events.","archived":false,"fork":false,"pushed_at":"2025-04-10T11:05:04.000Z","size":241,"stargazers_count":18,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-14T17:03:30.468Z","etag":null,"topics":["combined-events","hacktoberfest","iaaf","iaaf-scores-calculator","iaaf-scoring-points","php-library"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GlaivePro.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-02T08:50:23.000Z","updated_at":"2025-04-10T10:58:06.000Z","dependencies_parsed_at":"2024-04-19T14:48:59.466Z","dependency_job_id":"6763b663-21f4-4736-9407-dfad4bd1f0af","html_url":"https://github.com/GlaivePro/IaafPoints","commit_stats":{"total_commits":114,"total_committers":6,"mean_commits":19.0,"dds":0.3771929824561403,"last_synced_commit":"646374c2063cf6109283691f84c3798a3b770ca7"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/GlaivePro/IaafPoints","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlaivePro%2FIaafPoints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlaivePro%2FIaafPoints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlaivePro%2FIaafPoints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlaivePro%2FIaafPoints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GlaivePro","download_url":"https://codeload.github.com/GlaivePro/IaafPoints/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlaivePro%2FIaafPoints/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264304586,"owners_count":23587990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["combined-events","hacktoberfest","iaaf","iaaf-scores-calculator","iaaf-scoring-points","php-library"],"created_at":"2024-11-20T00:37:16.553Z","updated_at":"2025-07-08T16:31:35.951Z","avatar_url":"https://github.com/GlaivePro.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IaafPoints\r\n\r\nPHP library to calculate World Athletics (IAAF) scoring points of athletics and\r\nWA (IAAF) scoring points for combined events. And some other evaluations of\r\ntrack and field results.\r\n\r\n\u003e IAAF is rolling a rebrand to WA, but we currently have no plans to rename the\r\n\u003e package or any of classes.\r\n\r\nThe WA scoring tables that we reproduce are these ones:\r\nhttps://www.worldathletics.org/about-iaaf/documents/technical-information#collapsescoring-tables\r\n\r\nThis package is used for the stats system of [Latvian Athletics Association](https://athletics.lv).\r\n\r\n## Table of Contents\r\n\r\n- [Installation](#installation)\r\n- [Usage](#usage)\r\n- [Contributing](#contributing)\r\n- [Changelog](#changelog)\r\n- [License](#license)\r\n\r\n## Installation\r\n\r\nUse composer:\r\n\r\n```sh\r\ncomposer require glaivepro/iaafpoints\r\n```\r\n\r\n## Usage\r\n\r\nThis package provides mutliple calculators that all provide the same interface.\r\n\r\n```php\r\n// Calculator and use-case specific options.\r\n$options = [\r\n\t'gender' =\u003e 'm',\r\n\t'venueType' =\u003e 'outdoor',\r\n\t'discipline' =\u003e '200m',\r\n];\r\n\r\n// Create a calculator instance\r\n$calculator = new \\GlaivePro\\IaafPoints\\IaafCalculator($options);\r\n\r\n// Evaluate a result getting some points or a class assigned to result.\r\n$points = $calculator-\u003eevaluate(21.61);\r\n// 980\r\n\r\n// Update options\r\n$calculator-\u003esetOptions(['gender' =\u003e 'f']);\r\n$points = $calculator-\u003eevaluate(21.61);\r\n// 1279\r\n```\r\n\r\nSee [docs](docs) for more details.\r\n\r\n## Contributing\r\n\r\n\u003e [!IMPORTANT] \r\n\u003e Do not edit anything in `data/`, edit it in `resources/`. The files in `data/`\r\n\u003e are auto-generated from files in `resources/`.\r\n\r\nMore [here](CONTRIBUTING.md).\r\n\r\n## Changelog\r\n\r\nIt's [here](CHANGELOG.md).\r\n\r\n## License\r\n\r\nThis package is licensed under the [MIT license](LICENSE.md).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglaivepro%2Fiaafpoints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglaivepro%2Fiaafpoints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglaivepro%2Fiaafpoints/lists"}