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 2w 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 69% 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

2786d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8752590?v=4)[Serhii Kondratiuk](/maintainers/Lifeformwp)[@Lifeformwp](https://github.com/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

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1942.4k4](/packages/aimeos-prisma)[volcengine/volcengine-php-sdk

118.7k](/packages/volcengine-volcengine-php-sdk)

PHPackages © 2026

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