2017 © Pedro Peláez
 

library laravel-battlenet-api

Laravel 5 client for Battle.net API

image

xklusive/laravel-battlenet-api

Laravel 5 client for Battle.net API

  • Monday, December 11, 2017
  • by xklusive
  • Repository
  • 4 Watchers
  • 8 Stars
  • 111 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 7 Open issues
  • 7 Versions
  • 8 % Grown

The README.md

Laravel 5 Battle.net API

Latest Version on Packagist Software License Build Status Code Quality SensioLabsInsight StyleCI Codacy Badge Total Downloads Average time to resolve an issue Percentage of issues still open, (*1)

This package allows to call the Battle.net API., (*2)

Once installed you can do stuff like this:, (*3)

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

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 https://dev.battle.net/docs to get your API key. Without a Battle.net API key, the package will not be functionnal., (*4)

Install

You can install the pacakge via composer:, (*5)

$ composer require xklusive/laravel-battlenet-api

Then this provider must be installed :, (*6)

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

The last required step is to publish configuration's file in your application with :, (*7)

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

Once the config file is published setup the required variables in the .env file :, (*8)

// .env

BATTLENET_KEY=[YOUR_API_KEY]
BATTLENET_REGION=eu

Congratulations, you have successfully installed Laravel Battle.net API !, (*9)

The Versions

11/12 2017

dev-develop

dev-develop https://github.com/xklusive/laravel-battlenet-api

Laravel 5 client for Battle.net API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Guillaume Meheust
by Dániel Hagyárossy

laravel api battle.net battlenet

08/12 2017

dev-analysis-q52Yol

dev-analysis-q52Yol https://github.com/xklusive/laravel-battlenet-api

Laravel 5 client for Battle.net API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Guillaume Meheust
by Dániel Hagyárossy

laravel api battle.net battlenet

07/12 2017

dev-master

9999999-dev https://github.com/xklusive/laravel-battlenet-api

Laravel 5 client for Battle.net API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Guillaume Meheust
by Dániel Hagyárossy

laravel api battle.net battlenet

07/12 2017

v1.0.1

1.0.1.0 https://github.com/xklusive/laravel-battlenet-api

Laravel 5 client for Battle.net API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Guillaume Meheust
by Dániel Hagyárossy

laravel api battle.net battlenet

02/12 2017

v1.0

1.0.0.0 https://github.com/xklusive/laravel-battlenet-api

Laravel 5 client for Battle.net API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Guillaume Meheust
by Dániel Hagyárossy

laravel api battle.net battlenet

27/01 2017

0.9.1

0.9.1.0 https://github.com/xklusive/laravel-battlenet-api

Laravel 5 client for Battle.net API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Guillaume Meheust

laravel api battle.net battlenet

19/01 2017

0.9

0.9.0.0 https://github.com/xklusive/laravel-battlenet-api

Laravel 5 client for Battle.net API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Guillaume Meheust

laravel api battle.net battlenet