{"id":33968149,"url":"https://github.com/tegenterter/fide-data","last_synced_at":"2026-05-29T08:02:50.382Z","repository":{"id":57066375,"uuid":"310706718","full_name":"tegenterter/fide-data","owner":"tegenterter","description":"Library for processing open data published by FIDE for PHP","archived":false,"fork":false,"pushed_at":"2024-07-03T12:27:08.000Z","size":80,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-14T12:43:13.234Z","etag":null,"topics":["chess","library","opendata","php","scraping"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tegenterter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-06T21:12:52.000Z","updated_at":"2024-07-03T12:27:34.000Z","dependencies_parsed_at":"2022-08-24T14:54:01.117Z","dependency_job_id":null,"html_url":"https://github.com/tegenterter/fide-data","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tegenterter/fide-data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegenterter%2Ffide-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegenterter%2Ffide-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegenterter%2Ffide-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegenterter%2Ffide-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tegenterter","download_url":"https://codeload.github.com/tegenterter/fide-data/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegenterter%2Ffide-data/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33642318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["chess","library","opendata","php","scraping"],"created_at":"2025-12-12T23:59:29.691Z","updated_at":"2026-05-29T08:02:50.370Z","avatar_url":"https://github.com/tegenterter.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\u003cimg src=\"fide.png\" alt=\"FIDE\" width=\"390\" height=\"250\"\u003e\u003c/h1\u003e\n\n**Library for processing open data published by [FIDE](https://www.fide.com) for [PHP](https://php.net)**\n\n[![Build Status](https://travis-ci.org/tegenterter/fide-data.svg?branch=master)](https://travis-ci.org/tegenterter/fide-data)\n\n## Features\n\n- Download all player rating XML files [published by FIDE](https://ratings.fide.com/download_lists.phtml)\n- Read and parse player rating XML files\n\n## Documentation\n\n### Installation\n\nUse [Composer](https://getcomposer.org) to install the library for your project:\n\n    composer require tegenterter/fide-data\n    \n### Basic Usage\n\n```php\n\u003c?php\n\nrequire __DIR__ . '/vendor/autoload.php';\n\n// Download particular rating file from https://ratings.fide.com/download_lists.phtml\n$client = new \\FideData\\Http\\RatingXmlDownloader(__DIR__);\n$path = $client-\u003edownload(\\FideData\\Enum\\RatingType::STANDARD, 2020, 12);\n\n// Read and parse the rating file\n$rating = new \\FideData\\PlayerRating($path);\n\n/** @var \\FideData\\Structure\\Player $player */\nforeach ($rating-\u003eprocess() as $player) {\n    // Get array representation of the player object\n    $array = $player-\u003etoArray();\n\n    echo json_encode($array, JSON_PRETTY_PRINT) . PHP_EOL;\n    /**\n    {\n        \"fideId\": 1503014,\n        \"name\": \"Carlsen, Magnus\",\n        \"federation\": \"NOR\",\n        \"birthYear\": 1990,\n        \"sex\": \"M\",\n        \"title\": \"GM\",\n        \"standardRating\": {\n            \"type\": \"standard\",\n            \"rating\": 2862,\n            \"k\": 10\n        },\n        \"rapidRating\": null,\n        \"blitzRating\": null,\n        \"active\": true\n    } \n    */\n}\n```\n\n### Testing\n\nThe library is covered by unit tests using [PHPUnit](https://phpunit.de). You can use the following [Composer](https://getcomposer.org) script to run them:\n\n    composer run test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftegenterter%2Ffide-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftegenterter%2Ffide-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftegenterter%2Ffide-data/lists"}