PHPackages                             team-reflex/socialite-battlenet - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. team-reflex/socialite-battlenet

Abandoned → [socialiteproviders/battlenet](/?search=socialiteproviders%2Fbattlenet)ArchivedLibrary[Authentication &amp; Authorization](/categories/authentication)

team-reflex/socialite-battlenet
===============================

BattleNet OAuth2 Provider for Laravel Socialite

v1.0.4(8y ago)28.8k2MITPHPPHP &gt;=5.5.9

Since Jun 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/teamreflex/Socialite-BattleNet)[ Packagist](https://packagist.org/packages/team-reflex/socialite-battlenet)[ RSS](/packages/team-reflex-socialite-battlenet/feed)WikiDiscussions master Synced today

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

Socialite-BattleNet
===================

[](#socialite-battlenet)

BattleNet provider for Laravel Socialite/Socialite Providers.

**Deprecated:** [Socialite Providers](https://socialiteproviders.netlify.com/providers/battle-net.html) has had a BattleNet provider for a while now. This package was made before it existed, and is no longer necessary.

Install
-------

[](#install)

Composer:

`composer install team-reflex/socialite-battlenet`

Same procedure as any other SocialiteProviders package. Add the event handler to the Socialite Providers array:

```
'Reflex\SocialiteProviders\BattleNet\BattleNetExtendSocialite@handle',

```

Place your environment variables in your `.env.`:

```
BATTLENET_KEY=client_id
BATTLENET_SECRET=client_secret
BATTLENET_REDIRECT_URI=https://example.com/login

```

Now you have two options when using the provider.

Usage (Socialite-way)
---------------------

[](#usage-socialite-way)

Now you can use the provider like so. The session flashing is only required if you need to use a BattleNet region other than `us`:

```
// redirect route
Session::put('bnet.region', 'eu');
return Socialite::with('battlenet')->redirect();

// callback route
$user = Socialite::driver('battlenet')->user();
$accountId = $user->getId(); // bnet accountId
$battletag = $user->getNickname(); // bnet battletag

```

Usage (Laravel-way)
-------------------

[](#usage-laravel-way)

If you'd like to avoid flashing to the session yourself, you can use the included facade that manages it for you.

Install service provider:

```
Reflex\SocialiteProviders\BattleNet\BattleNetServiceProvider::class,

```

Install facade:

```
'BattleNet' => Reflex\SocialiteProviders\BattleNet\BattleNetFacade::class,

```

Now you can simply use the facade. The region defaults to `us`, so you don't even need to pass it through:

```
// redirect route
return BattleNet::redirect('eu');

```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 72.7% 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 ~101 days

Total

5

Last Release

3265d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c4b542cd7b5f3a4f3587cbb2ffe26e815b3c9aa9892c04fc5d93ec8d0db5d5e?d=identicon)[Kairu](/maintainers/Kairu)

---

Top Contributors

[![xKairu](https://avatars.githubusercontent.com/u/169433509?v=4)](https://github.com/xKairu "xKairu (8 commits)")[![benargo](https://avatars.githubusercontent.com/u/863291?v=4)](https://github.com/benargo "benargo (2 commits)")[![kylekz](https://avatars.githubusercontent.com/u/450516?v=4)](https://github.com/kylekz "kylekz (1 commits)")

---

Tags

battle-netlaravel-socialitesocialite-providersteam-reflex

### Embed Badge

![Health badge](/badges/team-reflex-socialite-battlenet/health.svg)

```
[![Health](https://phpackages.com/badges/team-reflex-socialite-battlenet/health.svg)](https://phpackages.com/packages/team-reflex-socialite-battlenet)
```

###  Alternatives

[socialiteproviders/manager

Easily add new or override built-in providers in Laravel Socialite.

42747.6M584](/packages/socialiteproviders-manager)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[dutchcodingcompany/filament-socialite

Social login for Filament through Laravel Socialite

2191.1M10](/packages/dutchcodingcompany-filament-socialite)[socialiteproviders/apple

Apple OAuth2 Provider for Laravel Socialite

629.5M15](/packages/socialiteproviders-apple)[socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

347.3M25](/packages/socialiteproviders-microsoft)[socialiteproviders/instagram

Instagram OAuth2 Provider for Laravel Socialite

402.0M5](/packages/socialiteproviders-instagram)

PHPackages © 2026

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