PHPackages                             jleagle/battlenet-api-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. jleagle/battlenet-api-client

ActiveLibrary[API Development](/categories/api)

jleagle/battlenet-api-client
============================

A package to retrieve information from the Battle.net API

0.1.0(10y ago)3891MITPHPPHP &gt;=5.4

Since Mar 22Pushed 10y ago3 watchersCompare

[ Source](https://github.com/Jleagle/battlenet-api-client)[ Packagist](https://packagist.org/packages/jleagle/battlenet-api-client)[ RSS](/packages/jleagle-battlenet-api-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

battlenet-api-client
====================

[](#battlenet-api-client)

[![Build Status (Scrutinizer)](https://camo.githubusercontent.com/91c3084b0110f457ebe9ecec49289d7c0afb64bf5b7fca9ae57f1fc5fb370ce9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4a6c6561676c652f626174746c656e65742d6170692d636c69656e742f6261646765732f6275696c642e706e67)](https://scrutinizer-ci.com/g/Jleagle/battlenet-api-client)[![Code Quality (scrutinizer)](https://camo.githubusercontent.com/71b93f3f246ac7abf498d1026ea02997c1cf98fe827c1cf0087d191276589d74/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4a6c6561676c652f626174746c656e65742d6170692d636c69656e742f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/Jleagle/battlenet-api-client)[![Latest Stable Version](https://camo.githubusercontent.com/cc4b99ba4b8eaa79fdd6dc1b8405b8e4efb511b4907e9fc519ede1fb6356893a/68747470733a2f2f706f7365722e707567782e6f72672f4a6c6561676c652f626174746c656e65742d6170692d636c69656e742f762f737461626c652e706e67)](https://packagist.org/packages/Jleagle/battlenet-api-client)[![Latest Unstable Version](https://camo.githubusercontent.com/67418e88262036f6c592c0019bf89c36d4a8705ea640e22d449c48f6eb6988db/68747470733a2f2f706f7365722e707567782e6f72672f4a6c6561676c652f626174746c656e65742d6170692d636c69656e742f762f756e737461626c652e706e67)](https://packagist.org/packages/Jleagle/battlenet-api-client)

A package to retrieve information from the Battle.net API ()

###### Pros

[](#pros)

- Code hinting
- Contains all game APIs (Diablo 3, StarCraft 2 and WoW)
- Contains authed account and community APIs, with helper functions to get OAuth tokens

### Usage

[](#usage)

Instantiate the package using your games class, passing though your API key, ServerLocation and ResponseLocale:

```
$warcraft = new Warcraft(
  $key,
  ServerLocations::EU,
  ResponseLocales::EN_GB
);
```

Example API calls:

```
// Retrieve auction data
$auctions = $warcraft->getAuctions('outland');

// Retrieve realm list
$realms = $warcraft->getRealms();

// Retrieve achievement details
$achievement = $warcraft->getAchievement(2144);
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~250 days

Total

2

Last Release

3815d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cd99212f53bfaee15e1c86440dacfc96d4f3d61a5a0101f3a48c1e87c51bee51?d=identicon)[Jleagle](/maintainers/Jleagle)

---

Top Contributors

[![Jleagle](https://avatars.githubusercontent.com/u/381099?v=4)](https://github.com/Jleagle "Jleagle (36 commits)")

---

Tags

wowdiablobattle.netbattleblizzardwarcraftstarcraft

### Embed Badge

![Health badge](/badges/jleagle-battlenet-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/jleagle-battlenet-api-client/health.svg)](https://phpackages.com/packages/jleagle-battlenet-api-client)
```

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[logansua/blizzard-api-client

API client for blizzard API written in PHP

302.5k](/packages/logansua-blizzard-api-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
