World Of Warcraft module
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
src
tests
.gitignore
.scrutinizer.yml
.travis.yml
CHANGELOG.MD
CONTRIBUTING.md
LICENSE
README.md
composer.json
composer.lock
phpunit.xml

README.md

WoW

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.