edbizarro / clash-royale-api
Clash Royale Api PHP SDK
Requires
- php: ^7.1
- guzzlehttp/guzzle: ^6.3
- guzzlehttp/psr7: ^1.4
- tightenco/collect: ^7.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.13
- larapack/dd: ^1.0
- mockery/mockery: ^1.0
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^9.1
- dev-master
- v0.2.7
- v0.2.6
- v0.2.5
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2
- v0.1
- dev-dependabot/composer/orchestra/testbench-tw-6.25
- dev-dependabot/composer/guzzlehttp/psr7-tw-2.4
- dev-dependabot/composer/tightenco/collect-tw-8.83
- dev-dependabot/composer/friendsofphp/php-cs-fixer-tw-3.4
- dev-dependabot/composer/friendsofphp/php-cs-fixer-tw-3.0
- dev-dependabot/add-v2-config-file
- dev-dependabot/composer/orchestra/testbench-tw-6.17
- dev-dependabot/composer/tightenco/collect-tw-8.34
This package is auto-updated.
Last update: 2024-10-24 12:59:55 UTC
README
PHP Wrapper for the Official Clash Royale API.
Installation
You can install the package via composer:
composer require edbizarro/clash-royale-api
Usage
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
Clan
Info
<?php use Edbizarro\ClashRoyale\Clan; $clan = new Clan('clan_tag'); $clan->get();
Search
<?php use Edbizarro\ClashRoyale\Clan; $clan = new Clan(); $clan->search(['name' => 'clan name']);
List with all search parameters
Members
<?php use Edbizarro\ClashRoyale\Clan; $clan = new Clan('clan_tag'); $clan->members();
List with all members parameters
War Log
<?php use Edbizarro\ClashRoyale\Clan; $clan = new Clan('clan_tag'); $clan->warlog();
List with all warlog parameters
Current War
<?php use Edbizarro\ClashRoyale\Clan; $clan = new Clan('clan_tag'); $clan->currentWar();
List with all current war parameters
Player
Info
<?php use Edbizarro\ClashRoyale\Player; $player = new Player('player_tag'); $player->get();
Battle log
<?php use Edbizarro\ClashRoyale\Player; $player = new Player('player_tag'); $player->battles();
Upcoming Chests
<?php use Edbizarro\ClashRoyale\Player; $player = new Player('player_tag'); $player->upcomingChests();
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email edbizarro@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.