Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 4 months ago
JSON representation

PHP Wrapper for the Official Clash Royale API.

Awesome Lists containing this project

README

        




PHP Wrapper for the Official Clash Royale API.



Build Status
StyleCI

Latest Stable Version
License

# 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 [email protected] 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.

---