PHP code example of game-scan / wow
1. Go to this page and download the library: Download game-scan/wow 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/ */
game-scan / wow example snippets
php
$api = (new GameScan\WoW\WowApiRequest(new GameScan\WoW\ApiConfiguration()));
$api->setHost(new GameScan\WoW\HostInformation\EuHostInformation());
$player = new GameScan\WoW\Entity\Player($api, $playerRealm , $playerName);
$playerThumbnailUrl = "http://eu.battle.net/static-render/eu/" . $player->thumbnail();
$playerIlvl = $player->averageItemLevel();
$playerLevel = $player->level();