World of Warcraft api module

v0.4.3 2015-12-13 09:32 UTC

README

Latest Version on Packagist Software License Build Status Quality Score Total Downloads

Librairy that make easier the use of the API WoW. Just provide credentials and use class to gather data from api. This librairy has no association with Blizzard Entertainment.

Install

Via Composer

$ composer require game-scan/wow

Requirement

Set .env file with api credential.

WOW_API_KEY=SET_YOUR_API_KEY

You could get an api key on Battle net developper website

Usage

For instance go get player data you could use the following exemple

$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();

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email contact@game-scan.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.