PHPackages                             firegore2/clash-royale-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. firegore2/clash-royale-php

ActiveLibrary[API Development](/categories/api)

firegore2/clash-royale-php
==========================

THE UNOFFICIAL PHP Clash Royale API

1.3.2(8y ago)111.8k5BSD-3-ClausePHPPHP &gt;=5.5.0

Since Dec 5Pushed 6y ago8 watchersCompare

[ Source](https://github.com/firegore2/clash-royale-php)[ Packagist](https://packagist.org/packages/firegore2/clash-royale-php)[ Docs](https://github.com/firegore2/clash-royale-php)[ RSS](/packages/firegore2-clash-royale-php/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (6)Versions (16)Used By (0)

clash-royale-php [![Packagist](https://camo.githubusercontent.com/f1b80d40b3967949d65ef48bc5a6ed83640335904224616388aa744073b75f73/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66697265676f7265322f636c6173682d726f79616c652d7068702e737667)](https://packagist.org/packages/firegore2/clash-royale-php) [![GitHub release](https://camo.githubusercontent.com/edcd9aa0a94261352fa23a7381bb7fa4828c9fe8b5cc9a1d8b7f918c89f15933/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f66697265676f7265322f636c6173682d726f79616c652d7068702e737667)](https://github.com/firegore2/clash-royale-php/releases/latest) [![Total Downloads](https://camo.githubusercontent.com/7eba3845905ac0c916bc396276bd7aad74084c7a2b965d66780a012de7c068b8/68747470733a2f2f706f7365722e707567782e6f72672f66697265676f7265322f636c6173682d726f79616c652d7068702f646f776e6c6f616473)](https://packagist.org/packages/firegore2/clash-royale-php) [![phpdocumentor](https://camo.githubusercontent.com/ec4b2c4c657af978e970cb0b271fe609d4d80e6716aa0c19688c5f351bd6720e/68747470733a2f2f646f637374616e642e726f63726f2e636f6d2f6261646765732f6769746875622e636f6d2f66697265676f7265322f636c6173682d726f79616c652d7068702f646f63756d656e746174696f6e2f706870646f63756d656e746f723f746f6b656e3d3756655f473362415f4d473465434a76386b41466e444665665953627779507270436f6b4c6d6946745f4d266272616e63683d6d6173746572)](https://docstand.rocro.com/docs/github.com/firegore2/clash-royale-php/branch/master/phpdocumentor/)
==================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#clash-royale-php----)

THE UNOFFICIAL PHP Clash Royale Wrapper

INFO
----

[](#info)

This work with the back-end of this page [Clash Royale API](https://royaleapi.com/)

REQUIREMENTS
------------

[](#requirements)

> PHP 5.5 or greater

> Composer

INSTALLATION
------------

[](#installation)

In the root of your project (the same path which contains the composer file) enter

```
 composer update

```

to install the library or use

```
composer require firegore2/clash-royale-php

```

to install in your own project.

TOKEN
-----

[](#token)

You need a developer token to use the API.

These are the steps to obtain it:

1. Go to the [discord server](http://discord.me/RoyaleApi) of the API
2. Go to the #developer-key channel.
3. Type `?crapikey get`
4. The bot will send you a DM (direct message) along with your key.

METHODS
-------

[](#methods)

> [API Document](https://docstand.rocro.com/docs/github.com/firegore2/clash-royale-php/branch/master/phpdocumentor/)See [examples](https://github.com/firegore2/clash-royale-php/tree/master/examples) folder for more information

### getPlayer()

[](#getplayer)

```
