{"id":15018370,"url":"https://github.com/edbizarro/clash-royale-api","last_synced_at":"2025-10-23T18:30:45.986Z","repository":{"id":33176996,"uuid":"154075287","full_name":"edbizarro/clash-royale-api","owner":"edbizarro","description":"PHP Wrapper for the Official Clash Royale API.","archived":false,"fork":false,"pushed_at":"2022-08-24T08:12:52.000Z","size":117,"stargazers_count":15,"open_issues_count":7,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T16:08:43.645Z","etag":null,"topics":["clash","clash-royale","clash-royale-api","clashapi","clashroyale","royale","supercell"],"latest_commit_sha":null,"homepage":"https://developer.clashroyale.com","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/edbizarro.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}},"created_at":"2018-10-22T02:13:20.000Z","updated_at":"2024-06-15T13:51:20.000Z","dependencies_parsed_at":"2022-09-18T09:20:47.347Z","dependency_job_id":null,"html_url":"https://github.com/edbizarro/clash-royale-api","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edbizarro%2Fclash-royale-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edbizarro%2Fclash-royale-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edbizarro%2Fclash-royale-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edbizarro%2Fclash-royale-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edbizarro","download_url":"https://codeload.github.com/edbizarro/clash-royale-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237869255,"owners_count":19379290,"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":["clash","clash-royale","clash-royale-api","clashapi","clashroyale","royale","supercell"],"created_at":"2024-09-24T19:51:53.462Z","updated_at":"2025-10-23T18:30:40.697Z","avatar_url":"https://github.com/edbizarro.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://developer.clashroyale.com/l_retina.526bc4.png\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\" style=\"margin: 30px 0 35px;\"\u003ePHP Wrapper for the Official \u003ca href=\"https://developer.clashroyale.com\"\u003e Clash Royale API\u003c/a\u003e.\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href='https://semaphoreci.com/edbizarro/clash-royale-api'\u003e \u003cimg src='https://semaphoreci.com/api/v1/edbizarro/clash-royale-api/branches/master/badge.svg' alt='Build Status'\u003e\u003c/a\u003e  \n  \u003ca href=\"https://github.styleci.io/repos/154075287\"\u003e\u003cimg src=\"https://github.styleci.io/repos/154075287/shield?branch=master\" alt=\"StyleCI\"\u003e\u003c/a\u003e  \n  \u003ca href=\"https://codeclimate.com/github/edbizarro/clash-royale-api/maintainability\"\u003e\u003cimg src=\"https://api.codeclimate.com/v1/badges/d9f87681a2cd5e496c63/maintainability\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://packagist.org/packages/edbizarro/clash-royale-api\"\u003e\u003cimg src=\"https://poser.pugx.org/edbizarro/clash-royale-api/v/stable.svg\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://packagist.org/packages/edbizarro/clash-royale-api\"\u003e\u003cimg src=\"https://poser.pugx.org/edbizarro/clash-royale-api/license.svg\" alt=\"License\"\u003e\u003c/a\u003e  \n\u003c/p\u003e\n\n# Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require edbizarro/clash-royale-api\n```\n\n# Usage\n\n\u003e Before use this library visit [https://developer.clashroyale.com](https://developer.clashroyale.com) to get an API TOKEN\n\nMake sure to initialize the API `\nApi::setApiToken($apiToken)` with a valid token before making requests \n\n## Clan\n\n### Info\n\n``` php\n\u003c?php\nuse Edbizarro\\ClashRoyale\\Clan;\n\n$clan = new Clan('clan_tag');\n$clan-\u003eget();\n\n```\n\n### Search\n\n``` php\n\u003c?php\nuse Edbizarro\\ClashRoyale\\Clan;\n\n$clan = new Clan();\n$clan-\u003esearch(['name' =\u003e 'clan name']);\n\n```\nList [with all search parameters](https://developer.clashroyale.com/api-docs/index.html#!/clans/searchClans)\n\n### Members\n\n``` php\n\u003c?php\nuse Edbizarro\\ClashRoyale\\Clan;\n\n$clan = new Clan('clan_tag');\n$clan-\u003emembers();\n\n``` \nList [with all members parameters](https://developer.clashroyale.com/api-docs/index.html#!/clans/getClanMembers)\n\n### War Log\n\n``` php\n\u003c?php\nuse Edbizarro\\ClashRoyale\\Clan;\n\n$clan = new Clan('clan_tag');\n$clan-\u003ewarlog();\n\n``` \nList [with all warlog parameters](https://developer.clashroyale.com/api-docs/index.html#!/clans/getClanWarLog)\n\n### Current War\n\n``` php\n\u003c?php\nuse Edbizarro\\ClashRoyale\\Clan;\n\n$clan = new Clan('clan_tag');\n$clan-\u003ecurrentWar();\n\n``` \nList [with all current war parameters](https://developer.clashroyale.com/api-docs/index.html#!/clans/getCurrentWar)\n\n\n\n## Player\n\n### Info\n\n``` php\n\u003c?php\nuse Edbizarro\\ClashRoyale\\Player;\n\n$player = new Player('player_tag');\n$player-\u003eget();\n\n```\n\n### Battle log\n\n``` php\n\u003c?php\nuse Edbizarro\\ClashRoyale\\Player;\n\n$player = new Player('player_tag');\n$player-\u003ebattles();\n\n```\n\n### Upcoming Chests\n\n``` php\n\u003c?php\nuse Edbizarro\\ClashRoyale\\Player;\n\n$player = new Player('player_tag');\n$player-\u003eupcomingChests();\n\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n### Security\n\nIf you discover any security related issues, please email edbizarro@gmail.com instead of using the issue tracker.\n\n## Credits\n\n- [EdBizarro](https://github.com/edbizarro)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n---\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://i.imgur.com/bn5hOeP.png\"\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedbizarro%2Fclash-royale-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedbizarro%2Fclash-royale-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedbizarro%2Fclash-royale-api/lists"}