jmwri/pubg-php

A wrapper for the PUBG Tracker API.


License
MIT

Documentation

PUBG

Build Status Total Downloads Latest Stable Version Latest Unstable Version License Code Climate Test Coverage Issue Count

https://github.com/jmwri/pubg-php

This package is a wrapper around PUBG Tracker's API.

Please obide by the rate limits specified by PUBG Tracker.

Getting started

Installation

composer require jmwri/pubg-php

API key

You will need to get an API key from PUBG Tracker.

Usage

Get account

$pubg = new \JmWri\Pubg\Pubg('my-api-key');
$pubg->getAccount(1234567890); // \JmWri\Pubg\Output\Account

Get player stats

$pubg = new \JmWri\Pubg\Pubg('my-api-key');
$report = $pubg->getPlayerStats('test_nickname'); // \JmWri\Pubg\Output\Stats\Report
$report->getStats('eu', 'solo'); // \JmWri\Pubg\Output\Stats\Stat[]
$report->getStats('eu', ['solo', 'duo']); // \JmWri\Pubg\Output\Stats\Stat[]
$report->getStats(['eu', 'na'], 'duo'); // \JmWri\Pubg\Output\Stats\Stat[]
$report->getMatchHistory(); // \JmWri\Pubg\Output\Stats\MatchHistory[]

Support

https://github.com/jmwri/pubg-php/issues