PHP code example of polakosz / clash-of-clans-api
1. Go to this page and download the library: Download polakosz/clash-of-clans-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
polakosz / clash-of-clans-api example snippets
php
use PoLaKoSz\ClashOfClansAPI as CoC;
...
$apiKey = 'eyJ0eX...';
$api = new CoC\ClashOfClansApi($apiKey);
$response = $api->getClanyByTag('#Y0PPL9V');
echo $response;