Skip to content

duronrulez/blizzard-api-php-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blizzard API PHP Client

API client for Blizzard API written in PHP. Blizzard API Documentation

Scrutinizer Code Quality Build Status Latest Stable Version Total Downloads Latest Unstable Version License SensioLabsInsight

Installation

Method 1

composer require logansua/blizzard-api-client

This command requires you to have Composer installed globally, as explained in the Composer documentation.

Method 2

git clone https://github.com/LogansUA/blizzard-api-php-client.git

Basic usage

// Include composer autoload file
require_once __DIR__.'/../vendor/autoload.php';

// Create a new Blizzard client with Blizzard API key
$client = new \BlizzardApi\BlizzardClient('apiKey');

// Create a new API service with configured Blizzard client
$diablo = new \BlizzardApi\Service\Diablo($client);

// Use API method for getting specific data
$response = $diablo->getItemDataById('Unique_Shoulder_103_x1');

// Show response body
echo $response->getBody();

List of available API services

License

This software is published under the MIT License

Packages

No packages published

Languages

  • PHP 100.0%