PHPackages                             samiaraboglu/pubg-php-api - 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. samiaraboglu/pubg-php-api

ActiveLibrary[API Development](/categories/api)

samiaraboglu/pubg-php-api
=========================

v2.0.0(5y ago)41.0k3MITPHPPHP ^7.3CI failing

Since Apr 2Pushed 5y ago3 watchersCompare

[ Source](https://github.com/samiaraboglu/pubg-php-api)[ Packagist](https://packagist.org/packages/samiaraboglu/pubg-php-api)[ Docs](https://github.com/samiaraboglu/pubg-php-api)[ RSS](/packages/samiaraboglu-pubg-php-api/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

pubg-php-api
============

[](#pubg-php-api)

[![Latest Stable Version](https://camo.githubusercontent.com/f5eaa5ab6691957d1a38c062c210674a5a67a499884a35888ce275da48dfac17/68747470733a2f2f706f7365722e707567782e6f72672f73616d69617261626f676c752f707562672d7068702d6170692f762f737461626c65)](https://packagist.org/packages/samiaraboglu/pubg-php-api)[![Total Downloads](https://camo.githubusercontent.com/58493438217e0958e2f9dc6f2ce278b6e00126e9b78553f2885ca0fb44962cfc/68747470733a2f2f706f7365722e707567782e6f72672f73616d69617261626f676c752f707562672d7068702d6170692f646f776e6c6f616473)](https://packagist.org/packages/samiaraboglu/pubg-php-api)[![License](https://camo.githubusercontent.com/2ac6b12dbf42eae764fbcbce9536465592685a438eb0b86e50611de3c9b1fd8a/68747470733a2f2f706f7365722e707567782e6f72672f73616d69617261626f676c752f707562672d7068702d6170692f6c6963656e7365)](https://packagist.org/packages/samiaraboglu/pubg-php-api)

PlayerUnknown's Battlegrounds Php Api

- [PUBG Official Documentation](https://documentation.pubg.com/en/introduction.html)

### Installing

[](#installing)

Via composer

```
$ composer require samiaraboglu/pubg-php-api

```

### Config

[](#config)

```
$config = new Pubg\Config();
$config->setApiKey('{API_KEY}');
$config->setPlatform('{PLATFORM}');

$api = new Pubg\Api($config);
```

Platform: `kakao`, `psn`, `steam`, `tournament`, `xbox`

Platform Region: `pc-as`, `pc-eu`, `pc-jp`, `pc-kakao`, `pc-krjp`, `pc-na`, `pc-oc`, `pc-ru`, `pc-sa`, `pc-sea`, `pc-tournament`, `psn-as`, `psn-eu`, `psn-na`, `psn-oc`, `xbox-as`, `xbox-eu`, `xbox-na`, `xbox-oc`, `xbox-sa`

### Players

[](#players)

Use the player service.

```
$playerService = new Pubg\Player($api);
```

Get a single player by name or accound ID.

```
// by player name
$player = $playerService->get('{PLAYER_NAME}');

// by account id
$player = $playerService->get('{ACCOUNT_ID}');
```

Get a collection of up to 6 players by names or account IDs.

```
// by players names
$players = $playerService->getAll(['{PLAYER_NAME_1}', '{PLAYER_NAME_2}']);

// by accounts ids
$players = $playerService->getAll(['{ACCOUNT_ID_1}', '{ACCOUNT_ID_2}']);
```

### Season Stats

[](#season-stats)

Use the season service.

```
$seasonService = new Pubg\Season($api);
```

Get the list of available seasons.

```
$seasons = $seasonService->getAll();
```

Get season information for a single player.

```
$season = $seasonService->get('{ACCOUNT_ID}', '{SEASON_ID}');
```

### Lifetime Stats

[](#lifetime-stats)

Use the lifetime service.

```
$lifetimeService = new Pubg\Lifetime($api);
```

Get lifetime stats for a single player.

```
$lifetime = $lifetimeService->get('{ACCOUNT_ID}');
```

### Matches

[](#matches)

Use the match service.

```
$matchService = new Pubg\Match($api);
```

Get a single match.

```
$match = $matchService->get('{MATCH_ID}');
```

### Leaderboards

[](#leaderboards)

Use the leaderboard service.

```
$leaderboardService = new Pubg\Leaderboard($api);
```

Get the leaderboard for a game mode.

```
$leaderboards = $leaderboardService->get('{GAME_MODE}', {PAGE_NUMBER});
```

Game modes: `duo`, `duo-fpp`, `solo`, `solo-fpp`, `squad`, `squad-fpp`

Page numbers: `0`, `1`

### Tournaments

[](#tournaments)

Use the tournament service.

```
$tournamentService = new Pubg\Tournament($api);
```

Get the list of available tournaments.

```
$tournaments = $tournamentService->getAll();
```

Get information for a single tournament.

```
$tournament = $tournamentService->get('{TOURNAMENT_ID}');
```

### Samples

[](#samples)

Use the samples service.

```
$sampleService = new Pubg\Sample($api);
```

Get a list of sample matches.

```
$samples = $sampleService->get();

// date filter
$samples = $sampleService->get('2019-03-29T00:00:00Z');
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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 ~220 days

Total

4

Last Release

1986d ago

Major Versions

1.0.2 → v2.0.02021-01-22

PHP version history (2 changes)1.0.0PHP &gt;=5.5

v2.0.0PHP ^7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8626159?v=4)[Sami Araboğlu](/maintainers/samiaraboglu)[@samiaraboglu](https://github.com/samiaraboglu)

---

Top Contributors

[![samiaraboglu](https://avatars.githubusercontent.com/u/8626159?v=4)](https://github.com/samiaraboglu "samiaraboglu (9 commits)")[![ncla](https://avatars.githubusercontent.com/u/5507083?v=4)](https://github.com/ncla "ncla (1 commits)")

---

Tags

apipubgpubg-apipubg-phpphppubg-phppubgpubg-api

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[resend/resend-php

Resend PHP library.

617.2M39](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)[files.com/files-php-sdk

Files.com PHP SDK

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

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

1943.1k5](/packages/aimeos-prisma)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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