blizzard-galaxy/api-supervisor

Blizzard API consumer and domain data mapper

0.2.0 2015-03-02 22:18 UTC

This package is not auto-updated.

Last update: 2024-05-25 16:06:32 UTC


README

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads SensioLabs Insight

This package is a PHP integration layer for the Blizzard API. It contains methods for easily consuming the API and retrieving the information into dedicated entities.

Install

Via Composer

$ composer require blizzard-galaxy/api-supervisor

Usage

$starcraftClient = new StarcraftClient('YOUR_API_KEY', Region::EUROPE, Locale::EN_GB);
$playerProfile = $starcraftClient->getPlayerProfile(2048419, 'LionHeart');

$ladderSummary = $starcraftClient->getLadderSummaryById(7500);
$ladderSummary = $starcraftClient->getLadderSummaryGrandmaster();
$ladderSummary = $starcraftClient->getLadderSummaryGrandmasterLastSeason();

Testing

$ phpunit

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email petre@dreamlabs.ro instead of using the issue tracker.

Credits

License

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