{"id":33963893,"url":"https://github.com/hyperplural/warface-sdk","last_synced_at":"2026-04-04T08:31:58.845Z","repository":{"id":57081551,"uuid":"277127499","full_name":"hyperplural/warface-sdk","owner":"hyperplural","description":"Fast and flexible SDK client of the Warface API in PHP.","archived":false,"fork":false,"pushed_at":"2025-05-17T08:25:36.000Z","size":179,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-09T09:43:54.268Z","etag":null,"topics":["api","php","sdk","warface","warface-api"],"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/hyperplural.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-07-04T14:38:51.000Z","updated_at":"2024-09-22T17:26:43.000Z","dependencies_parsed_at":"2024-05-08T04:08:10.030Z","dependency_job_id":"c00e477b-28fc-4130-9225-f57f2346a9e5","html_url":"https://github.com/hyperplural/warface-sdk","commit_stats":null,"previous_names":["wnull/warface-sdk","hyperplural/warface-sdk"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/hyperplural/warface-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperplural%2Fwarface-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperplural%2Fwarface-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperplural%2Fwarface-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperplural%2Fwarface-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperplural","download_url":"https://codeload.github.com/hyperplural/warface-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperplural%2Fwarface-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27694159,"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","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"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":["api","php","sdk","warface","warface-api"],"created_at":"2025-12-12T22:51:01.556Z","updated_at":"2026-01-11T16:10:29.339Z","avatar_url":"https://github.com/hyperplural.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Warface SDK (PHP)\n\n![Coverage](https://img.shields.io/badge/coverage-100%25-brightgreen)\n\nFast, PSR‑18 HTTP‑client agnostic SDK for the public Warface API. Requires PHP \u003e= 8.1.\n\n## Installation\n\n```bash\ncomposer require hyperplural/warface-sdk guzzlehttp/guzzle:^7 http-interop/http-factory-guzzle:^1\n```\n\nDecoupled from any specific HTTP client via [HTTPlug](https://httplug.io/).\n\n## Quickstart\n\n```php\nuse Hyperplural\\WarfaceSdk\\Client;\nuse Hyperplural\\WarfaceSdk\\Enum\\RatingLeague;\nuse Hyperplural\\WarfaceSdk\\Enum\\GameClass;\n\n$client = new Client();\n\n// Player stats\n$stat = $client-\u003euser()-\u003estat('Nickname');\n\n// Player achievements\n$achievements = $client-\u003euser()-\u003eachievements('Nickname');\n\n// Achievement catalog\n$catalog = $client-\u003eachievement()-\u003ecatalog();\n\n// Clan info\n$clan = $client-\u003eclan()-\u003emembers('ClanName');\n\n// Missions\n$missions = $client-\u003egame()-\u003emissions();\n\n// Ratings\n$monthly = $client-\u003erating()-\u003emonthly('', RatingLeague::ELITE);\n$top100 = $client-\u003erating()-\u003etop100(GameClass::MEDIC);\n```\n\n## Custom HTTP client\n\nProvide your own PSR‑18 client (e.g., Symfony HttpClient with HTTPlug adapter):\n\n```php\nuse Hyperplural\\WarfaceSdk\\Client;\nuse Symfony\\Component\\HttpClient\\HttplugClient;\n\n$client = Client::createWithHttpClient(new HttplugClient());\n```\n\n## References\n\n- Official docs: https://ru.warface.com/wiki/index.php/API\n- WFTS (legacy application) as an additional reference source.\n\n## Testing\n\n```bash\ncomposer test\n```\n\nUnit tests rely on JSON fixtures and a mock HTTP client — no network required. CI enforces 100% line coverage.\n\n## License\n\nMIT. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperplural%2Fwarface-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperplural%2Fwarface-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperplural%2Fwarface-sdk/lists"}