PHPackages                             xklusive/laravel-battlenet-api - 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. xklusive/laravel-battlenet-api

ActiveLibrary[API Development](/categories/api)

xklusive/laravel-battlenet-api
==============================

Laravel 5 client for Battle.net API

1.1(7y ago)93613[6 issues](https://github.com/xklusive/laravel-battlenet-api/issues)[1 PRs](https://github.com/xklusive/laravel-battlenet-api/pulls)MITPHPPHP &gt;=7.0.0

Since Jan 18Pushed 7y ago4 watchersCompare

[ Source](https://github.com/xklusive/laravel-battlenet-api)[ Packagist](https://packagist.org/packages/xklusive/laravel-battlenet-api)[ Docs](https://github.com/xklusive/laravel-battlenet-api)[ RSS](/packages/xklusive-laravel-battlenet-api/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (6)Versions (7)Used By (0)

Laravel 5 Battle.net API
========================

[](#laravel-5-battlenet-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d3ff0337639075da5d13852371d7d9667715127853bf4c969dc466768c47f2fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f786b6c75736976652f6c61726176656c2d626174746c656e65742d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/xklusive/laravel-battlenet-api)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/b0c4b2d5018b0b5c68c9cfea98bb0658a6da0d7c077fc2a46a5bd831b6d61008/68747470733a2f2f7472617669732d63692e6f72672f786b6c75736976652f6c61726176656c2d626174746c656e65742d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/xklusive/laravel-battlenet-api)[![Code Quality](https://camo.githubusercontent.com/a343b43b73607494a5370f5f4fc211241abd3ab243086f6fe8aadd7803a9db01/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f786b6c75736976652f6c61726176656c2d626174746c656e65742d6170692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/xklusive/laravel-battlenet-api/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/e628c4063912031667dc203d5d4d499441d2e94d5cdf60dc7f7366420c9c4691/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f30326638663031362d623436322d346330632d383562372d6166633531623161336236612f6d696e692e706e67)](https://insight.sensiolabs.com/projects/02f8f016-b462-4c0c-85b7-afc51b1a3b6a)[![StyleCI](https://camo.githubusercontent.com/fac2b009a8e5ea7f8f75aea91406781a96af8f28f6ec36d01a4e66bbdee54599/68747470733a2f2f7374796c6563692e696f2f7265706f732f37393333353436302f736869656c64)](https://styleci.io/repos/79335460)[![Codacy Badge](https://camo.githubusercontent.com/45817c95b7450bf554c96be9fa294f8e89c0c11b1850f91f2c03af64e715b7cc/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6464313961633365373066343439353762373666396431386334626633656161)](https://www.codacy.com/app/atraides/laravel-battlenet-api?utm_source=github.com&utm_medium=referral&utm_content=xklusive/laravel-battlenet-api&utm_campaign=Badge_Grade)[![Total Downloads](https://camo.githubusercontent.com/dd75c17b10e31232f82d8285b46d5e87972008e77a509d5c9ed7c970060adde2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f786b6c75736976652f6c61726176656c2d626174746c656e65742d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/xklusive/laravel-battlenet-api)[![Average time to resolve an issue](https://camo.githubusercontent.com/c69ce5f31a585c09f8705ffd3ac8acbc347d3b547aaad322222aabba694c68df/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f7265736f6c7574696f6e2f786b6c75736976652f6c61726176656c2d626174746c656e65742d6170692e737667)](http://isitmaintained.com/project/xklusive/laravel-battlenet-api "Average time to resolve an issue")[![Percentage of issues still open](https://camo.githubusercontent.com/5cdfee0284eba21c70990c21bbdedff28e8b5d7b262612067bb3b9eab14c04a7/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f6f70656e2f786b6c75736976652f6c61726176656c2d626174746c656e65742d6170692e737667)](http://isitmaintained.com/project/xklusive/laravel-battlenet-api "Percentage of issues still open")

This package allows to call the Battle.net API.

Once installed you can do stuff like this:

```
use Xklusive\BattlenetApi\Services\WowService;

public function index(WowService $wow)
{
	$achievement = $wow->getAchievement(2144);

	dd($achievement);

	//Ouput:
	//Collection {#236 ▼
  	//	#items: array:10 [▼
	//	    "id" => 2144
	//	    "title" => "Voyages au bout du monde"
	//	    "points" => 50
	//	    "description" => "Accomplir les hauts faits des évènements mondiaux listés ci-dessous."
	//	    "reward" => "Récompense : proto-drake pourpre"
	//	    "rewardItems" => array:1 [▶]
	//	    "icon" => "achievement_bg_masterofallbgs"
	//	    "criteria" => array:8 [▶]
	//	    "accountWide" => true
	//	    "factionId" => 2
	//	]
}
```

Battle.net API key
------------------

[](#battlenet-api-key)

Before you be able to make requests to the Battle.net API, you need to provide your API key. If you don't have an API key, refer to  to get your API key. Without a Battle.net API key, the package will not be functionnal.

Install
-------

[](#install)

You can install the pacakge via composer:

```
$ composer require xklusive/laravel-battlenet-api
```

Then this provider must be installed :

```
// config/app.php
'providers' => [
	...
    Xklusive\BattlenetApi\BattlenetApiServiceProvider::class,
];
```

The last required step is to publish configuration's file in your application with :

```
$ php artisan vendor:publish --provider="Xklusive\BattlenetApi\BattlenetApiServiceProvider" --tag="config"
```

Once the config file is published setup the required variables in the .env file :

```
// .env

BATTLENET_KEY=[YOUR_API_KEY]
BATTLENET_REGION=eu
```

Congratulations, you have successfully installed Laravel Battle.net API !

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 57.6% 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 ~123 days

Recently: every ~152 days

Total

6

Last Release

2784d ago

Major Versions

0.9.1 → v1.02017-12-02

1.1 → v2.0.x-dev2018-09-27

PHP version history (2 changes)0.9PHP &gt;=5.6.0

v1.0PHP &gt;=7.0.0

### Community

Maintainers

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

---

Top Contributors

[![atraides](https://avatars.githubusercontent.com/u/510412?v=4)](https://github.com/atraides "atraides (53 commits)")[![xklusive](https://avatars.githubusercontent.com/u/6564704?v=4)](https://github.com/xklusive "xklusive (39 commits)")

---

Tags

apilaravelbattle.net

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xklusive-laravel-battlenet-api/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[nickurt/laravel-postcodeapi

Universal PostcodeApi for Laravel 11.x/12.x/13.x

97221.2k](/packages/nickurt-laravel-postcodeapi)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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