PHPackages                             lifeformwp/php-pubg - 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. [API Development](/categories/api)
4. /
5. lifeformwp/php-pubg

ActiveLibrary[API Development](/categories/api)

lifeformwp/php-pubg
===================

PUBG API wrapper written in PHP 7.1

1.8.0(7y ago)112.4k3[3 issues](https://github.com/Lifeformwp/php-pubg/issues)[1 PRs](https://github.com/Lifeformwp/php-pubg/pulls)MITPHPPHP &gt;=7.1.0

Since Apr 10Pushed 7y ago2 watchersCompare

[ Source](https://github.com/Lifeformwp/php-pubg)[ Packagist](https://packagist.org/packages/lifeformwp/php-pubg)[ RSS](/packages/lifeformwp-php-pubg/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (10)Dependencies (2)Versions (10)Used By (0)

PHPPUBG - wrapper for PUBG Developer API
========================================

[](#phppubg---wrapper-for-pubg-developer-api)

[![Total Downloads](https://camo.githubusercontent.com/da4828bc343f274593a2778ae0ac486164ea8975e5c091e3966f908199355bef/68747470733a2f2f706f7365722e707567782e6f72672f6c696665666f726d77702f7068702d707562672f646f776e6c6f616473)](https://packagist.org/packages/lifeformwp/php-pubg)

Wrapper for PUBG API with DTO (Matches, Player/Players, Status, Telemetry, Samples), full test coverage, PHP 7.1, etc.

Requirements
============

[](#requirements)

- PHP &gt;= 7.1

Installation
============

[](#installation)

- run `composer require lifeformwp/php-pubg`

Basic usage
===========

[](#basic-usage)

```
$client = new GuzzleHttp\Client();
$class = new \Lifeformwp\PHPPUBG\PUBGManager($client, 'token');

$data = $class->getMatch('pc-eu', 'abe08f7e-3add-4fd6-9bcd-4aff88fc7adf'); //returns array
$matchObject = $class->hydrate($data, \Lifeformwp\PHPPUBG\PUBGManager::HYDRATE_MATCH); //returns Lifeformwp\PHPPUBG\DTO\Match object

```

Available methods
=================

[](#available-methods)

- getMatch(\[string, required\]shard, \[string, required\]matchId) - returns array of data about match
- getPlayers(\[string, required\]shard, \[array, not required\]playerNames, \[array, not required\]playerIds) - returns array of data about players
- getPlayer(\[string, required\]shard, \[string, required\]playerId) - returns array of data about player
- getTelemetry(\[string, required\]shard, \[string, required\]matchId) - returns array of telemetry data from the match
- getStatus() - returns array of data about API status
- getSamples(\[string, required\]shard) - returns array of sample data
- getSeasons(\[string, required\]shard) - returns array of seasons data
- getSeasonDataForPlayer(\[string, required\]shard, \[string, required\]playerId, \[string, required\]seasonId) - returns array of season data for player
- getTournaments() - returns array of data about tournaments
- getTournament(\[string, required\]tournamentId) - returns array of data about tournament
- getLeaderboard(\[string, required\]shard, \[string, required\]gameMode) - returns array of data about leaderboard
- getMatches(\[string, required\]shard, \[array, required\]matchesIds) - returns array of arrays about matches
- getTelemetryByMatch(\[string, required\]telemetryUrl) - returns array of data according to given telemetry url
- setClient(\[ClientInterface, required\]client)
- setToken(\[string, required\]token)
- hydrate(\[array, required\]data, \[string, required\]type) - returns object from given array, possible values for type parameter are: HYDRATE\_MATCH, HYDRATE\_PLAYERS, HYDRATE\_PLAYER, HYDRATE\_STATUS, HYDRATE\_TELEMETRY and HYDRATE\_SAMPLES

WIP
===

[](#wip)

- Documentation
- More flexible behaviour

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~27 days

Recently: every ~48 days

Total

9

Last Release

2741d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d00f8d1bdbef84126eeb8fb27d74f1bc96f8903bebdda670872176cae02373e?d=identicon)[Lifeformwp](/maintainers/Lifeformwp)

---

Top Contributors

[![lifeformvp-one](https://avatars.githubusercontent.com/u/267957061?v=4)](https://github.com/lifeformvp-one "lifeformvp-one (7 commits)")

---

Tags

phpphp7pubg-apiwrapperwrapperPHP7pubg

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lifeformwp-php-pubg/health.svg)

```
[![Health](https://phpackages.com/badges/lifeformwp-php-pubg/health.svg)](https://phpackages.com/packages/lifeformwp-php-pubg)
```

###  Alternatives

[gabrielbull/ups-api

PHP UPS API

4642.4M10](/packages/gabrielbull-ups-api)[aerni/laravel-spotify

A Laravel wrapper for the Spotify Web API

209145.6k](/packages/aerni-laravel-spotify)[marcreichel/igdb-laravel

A Laravel wrapper for version 4 of the IGDB API (Apicalypse) including webhook handling

115146.6k1](/packages/marcreichel-igdb-laravel)[jayzeng/virustotalapi

VirusTotal Public API v2.0 PHP Wrapper

62140.7k3](/packages/jayzeng-virustotalapi)[dariusiii/tmdb-laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

1821.1k](/packages/dariusiii-tmdb-laravel)[jeffreyhyer/bamboohr

PHP SDK for the BambooHR API

1077.3k1](/packages/jeffreyhyer-bamboohr)

PHPackages © 2026

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