https://github.com/edbizarro/clash-royale-api
PHP Wrapper for the Official Clash Royale API.
https://github.com/edbizarro/clash-royale-api
clash clash-royale clash-royale-api clashapi clashroyale royale supercell
Last synced: 8 months ago
JSON representation
PHP Wrapper for the Official Clash Royale API.
- Host: GitHub
- URL: https://github.com/edbizarro/clash-royale-api
- Owner: edbizarro
- License: mit
- Created: 2018-10-22T02:13:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-08-24T08:12:52.000Z (almost 4 years ago)
- Last Synced: 2025-02-08T16:08:43.645Z (over 1 year ago)
- Topics: clash, clash-royale, clash-royale-api, clashapi, clashroyale, royale, supercell
- Language: PHP
- Homepage: https://developer.clashroyale.com
- Size: 114 KB
- Stars: 15
- Watchers: 1
- Forks: 6
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
PHP Wrapper for the Official Clash Royale API.
# Installation
You can install the package via composer:
```bash
composer require edbizarro/clash-royale-api
```
# Usage
> Before use this library visit [https://developer.clashroyale.com](https://developer.clashroyale.com) to get an API TOKEN
Make sure to initialize the API `
Api::setApiToken($apiToken)` with a valid token before making requests
## Clan
### Info
``` php
get();
```
### Search
``` php
search(['name' => 'clan name']);
```
List [with all search parameters](https://developer.clashroyale.com/api-docs/index.html#!/clans/searchClans)
### Members
``` php
members();
```
List [with all members parameters](https://developer.clashroyale.com/api-docs/index.html#!/clans/getClanMembers)
### War Log
``` php
warlog();
```
List [with all warlog parameters](https://developer.clashroyale.com/api-docs/index.html#!/clans/getClanWarLog)
### Current War
``` php
currentWar();
```
List [with all current war parameters](https://developer.clashroyale.com/api-docs/index.html#!/clans/getCurrentWar)
## Player
### Info
``` php
get();
```
### Battle log
``` php
battles();
```
### Upcoming Chests
``` php
upcomingChests();
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
### Security
If you discover any security related issues, please email edbizarro@gmail.com instead of using the issue tracker.
## Credits
- [EdBizarro](https://github.com/edbizarro)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
---