PHP code example of xgerhard / wom-php
1. Go to this page and download the library: Download xgerhard/wom-php 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/ */
xgerhard / wom-php example snippets
use WOM\Client;
$client = new Client();
$player = $client->players->get('zezima');
echo $player->displayName; // Zezima
$level = $player->latestSnapshot->data->skills->overall->level;
echo $boss->formatMetric(); // Chambers Of Xeric
echo $boss->formatRank(); // 13.37k
echo $skill->formatExperience(); // 13.03m
composer
git clone https://github.com/xgerhard/wom-php.git
php vendor/bin/phpunit