depotwarehouse / bnet-sc2-api
An API wrapper for the SC2 API on Battle.net
Installs: 49
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/depotwarehouse/bnet-sc2-api
Requires
- guzzlehttp/guzzle: ^6.0
Requires (Dev)
- mockery/mockery: ^0.9.4
- phpunit/phpunit: ^5.0
README
This is a quick (WIP) wrapper for the Battle.net API for SC2. It's likely best not to rely on it, as the API can change very publicly, very quickly.
At current, there is a single supported function to get Grandmaster Information
Installation
composer require depotwarehouse/bnet-sc2-api
Testing
Since this is primarily a wrapper for the Battle.net API, testing would be useless if we did not actually hit the API.
To that end, in order to test you must have an API key. Once you have that, copy phpunit.xml.dist
to phpunit.xml
and
fill in the BNET_API_KEY
value in the <php>
section.