PHPackages                             saadj55/laravel-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. saadj55/laravel-pubg

ActiveLibrary[API Development](/categories/api)

saadj55/laravel-pubg
====================

Laravel Package for Official PUBG API

61853PHP

Since Jan 11Pushed 6y ago2 watchersCompare

[ Source](https://github.com/saadj55/laravel-pubg)[ Packagist](https://packagist.org/packages/saadj55/laravel-pubg)[ RSS](/packages/saadj55-laravel-pubg/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Package for PUBG API
============================

[](#laravel-package-for-pubg-api)

A Laravel Package for PUBG Official API

[![Total Downloads](https://camo.githubusercontent.com/c4eb5109bd0b4cb09602c686a0249ec92d493316ca7bb383b88a3e3b63c45555/68747470733a2f2f706f7365722e707567782e6f72672f736161646a35352f6c61726176656c2d707562672f646f776e6c6f616473)](https://packagist.org/packages/saadj55/laravel-pubg)[![License](https://camo.githubusercontent.com/ea6dde210dcdefc7dd9ac202d6ba4735cfa5a5197e7bfa89d4f6a5de3a22fee6/68747470733a2f2f706f7365722e707567782e6f72672f736161646a35352f6c61726176656c2d707562672f6c6963656e7365)](https://packagist.org/packages/saadj55/laravel-pubg)

Installation
------------

[](#installation)

Require this package with composer.

```
composer require saadj55/laravel-pubg
```

Setup
-----

[](#setup)

### Laravel 5.5+ Integration

[](#laravel-55-integration)

Package discovery is enabled so need for additional configuration.

### Laravel 5.\* Integration

[](#laravel-5-integration)

After installation, open `config/app.php` and add the following line to `providers` key `Saadj55\LaravelPubg\Providers\LaravelPubgServiceProvider::class,`After that, run the following command to publish configuration file.

```
php artisan vendor:publish
```

Set your access token in the `.env` file as `PUBG_ACCESS_TOKEN=`

Set the region you want to query as `PUBG_REGION=` in the `.env` file.

Set the platform you want to query as `PUBG_PLATFORM=` in the `.env` file

Usage
-----

[](#usage)

You can simply use the API by adding `use Saadj55\LaravelPubg\Pubg;` wherever you want to call the API and making a new instance of the `Pubg` class as `$pubg = new Pubg;`

API
---

[](#api)

### getPlayerById

[](#getplayerbyid)

```
$pubg = new Pubg;
$player = $pubg->getPlayerById($player_id);
```

### getPlayersByIds

[](#getplayersbyids)

```
$pubg = new Pubg;
$player_ids = [1,2,3,4,5];
$player = $pubg->getPlayersByIds($player_ids);
```

### getPlayersByNames

[](#getplayersbynames)

```
$pubg = new Pubg;
$player_names = ['foo','bar'];
$player = $pubg->getPlayersByName($player_names);
```

### getMatchById

[](#getmatchbyid)

```
$pubg = new Pubg;
$match = $pubg->getMatchById($match_id);
```

By default, region name is set from the `app/config/pubg.php`. If you need to set the region on the fly, You can call `$pubg->setRegion($region_name)` before calling any of the above methods. You can also call `$pubg->setPlatform($platform)`

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/80e5be7b1a06c8d6b0508ac9cff447f4d1d75c5899f08661e15f8191a9a7899c?d=identicon)[saadj55](/maintainers/saadj55)

---

Top Contributors

[![saadj55](https://avatars.githubusercontent.com/u/4143337?v=4)](https://github.com/saadj55 "saadj55 (5 commits)")

---

Tags

apilaravelplayerunknow-spubgpubgapi

### Embed Badge

![Health badge](/badges/saadj55-laravel-pubg/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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