2017 © Pedro Peláez
 

library wowsdk-php

PHP SDK for Blizzard's WoW API

image

chrisob120/wowsdk-php

PHP SDK for Blizzard's WoW API

  • Tuesday, April 26, 2016
  • by chrisob120
  • Repository
  • 2 Watchers
  • 3 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP SDK for Blizzard's WoW API

experimental, (*1)

PHP WoW SDK is an SDK to interact the World of Warcraft API., (*2)

Note: This library utilizes GuzzlePHP, (*3)

Main Features

  • Services work with all applicable APIs (https://dev.battle.net/io-docs)
    • Achievement
    • Auction
    • Boss
    • Challenge Mode
    • Character Profile
    • Guild Profile
    • Item
    • Mount
    • Pet
    • PVP
    • Quest
    • Realm Status
    • Recipe
    • Resources
    • Spell
    • Zone
  • Supports Blizzard's OAuth 2 authentication process to access user profile information
  • Utilizes GuzzlePHP's LastModified header option with caching to decrease HTTP requests

Requirements

  • PHP >= 5.6
  • cURL
  • JSON

Installing via Composer

Composer is a dependency management tool for PHP which will allow you to easily add WoW SDK to your project. Simply add "chrisob120/wowsdk-php" to your project's composer.json file., (*4)

 {
    "require": {
        "chrisob120/wowsdk-php": "1.0.*"
    }
 }

Basic Usage

The WowApi class contains the services that hold the methods which allow you to access the WoW API. Basic access is quite simple and only requires your mashery API key., (*5)

use WowApi\WowApi;

$api = new WowApi('your mashery api key');
$api->bossService->getBoss(24723);

All optional parameters default to the US region with the 'en_US' locale. These options can be adjusted as shown below. Here is a list of different regions and locales provided by Blizzard., (*6)

use WowApi\WowApi;

$options = [
    'region' => 'eu',
    'locale' => 'en_GB'
];

$api = new WowApi('your mashery api key', $options);
$api->bossService->getBoss(24723);

For more information, check out the wiki which includes: * Caching * Examples * OAuth * Parameters * Services, (*7)

Todo

  • Improve services for common uses

The Versions

26/04 2016

dev-master

9999999-dev https://github.com/chrisob120/wowsdk-php

PHP SDK for Blizzard's WoW API

  Sources   Download

MIT

The Requires

 

The Development Requires

api php sdk wow world of warcraft wowapi