PHP Wrapper for the Official Clash Royale API.
You can install the package via composer:
composer require edbizarro/clash-royale-api
Before use this library visit 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
<?php
use Edbizarro\ClashRoyale\Clan;
$clan = new Clan('clan_tag');
$clan->get();
<?php
use Edbizarro\ClashRoyale\Clan;
$clan = new Clan();
$clan->search(['name' => 'clan name']);
List with all search parameters
<?php
use Edbizarro\ClashRoyale\Clan;
$clan = new Clan('clan_tag');
$clan->members();
List with all members parameters
<?php
use Edbizarro\ClashRoyale\Clan;
$clan = new Clan('clan_tag');
$clan->warlog();
List with all warlog parameters
<?php
use Edbizarro\ClashRoyale\Clan;
$clan = new Clan('clan_tag');
$clan->currentWar();
List with all current war parameters
<?php
use Edbizarro\ClashRoyale\Player;
$player = new Player('player_tag');
$player->get();
<?php
use Edbizarro\ClashRoyale\Player;
$player = new Player('player_tag');
$player->battles();
<?php
use Edbizarro\ClashRoyale\Player;
$player = new Player('player_tag');
$player->upcomingChests();
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.