PHPackages                             triyatna/php-valid-game - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. triyatna/php-valid-game

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

triyatna/php-valid-game
=======================

PHP package for validating game user IDs via Codashop scraping and GoPay Games

1.0.4(3mo ago)444MITPHPPHP ^8.1

Since Sep 15Pushed 3mo agoCompare

[ Source](https://github.com/triyatna/php-valid-game)[ Packagist](https://packagist.org/packages/triyatna/php-valid-game)[ RSS](/packages/triyatna-php-valid-game/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (5)Used By (0)

PHP Valid Game
==============

[](#php-valid-game)

[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](LICENSE)

PHP package for validating game user IDs via **Codashop scraping** and **GoPay Games API**.

---

Install
-------

[](#install)

```
composer require triyatna/php-valid-game
```

Requires **PHP 8.1+** and works with Laravel, CodeIgniter, Symfony, Slim, or plain PHP.

---

Features
--------

[](#features)

- **Dual Provider** — Validates via Codashop initPayment scraping and GoPay Games API
- **Auto Fallback** — If the preferred provider fails, automatically tries the next one
- **Nickname Extraction** — Returns the player's in-game nickname when available
- **22 Games Supported** — Mobile Legends, Free Fire, Genshin Impact, VALORANT, PUBG Mobile, and more
- **Alias Resolution** — Accepts human names, aliases, and canonical codes (`ff`, `ml`, `mlbb`, etc.)
- **Magic Methods** — Call any game as a method: `$client->freefire('123')`, `$client->pubg('456')`
- **Smart Registry** — Search games, filter by provider, register custom games at runtime
- **Laravel Integration** — Auto-discovery service provider, facade, and publishable config
- **PSR-3 Logging** — Optional debug logging via any PSR-3 compatible logger
- **Proxy Support** — Route requests through HTTP proxy

---

Supported Games
---------------

[](#supported-games)

GameCodeZone RequiredCodashopGoPayAliases8 Ball Pool`8ballpool`No✓—`eightballpool`Aether Gazer`aethergazer`No✓—Arena of Valor`aov`No✓✓`arenaofvalor`Auto Chess`autochess`No✓—Azur Lane`azurlane`**Yes**✓—Badlanders`badlanders`**Yes**✓—BarbarQ`barbarq`No✓—Basketrio`basketrio`**Yes**✓—Call of Duty Mobile`cod`No✓✓`codm`, `callofduty`Dragon City`dragoncity`No✓—FC Mobile`fcmobile`No—✓`fcm`, `efootball`Free Fire`freefire`No✓✓`ff`, `garena`Genshin Impact`genshinimpact`**Yes**✓✓`genshin`, `gi`Hago`hago`No✓—Honkai Star Rail`honkaistarrail`**Yes**✓—`hsr`, `starrail`Honor of Kings`hok`No—✓`honorofkings`Magic Chess: Go Go`magicchessgogo`**Yes**—✓`magicchess`, `mcgg`Mobile Legends`mobilelegends`**Yes**✓✓`ml`, `mlbb`, `mobilelegend`Point Blank`pb`No✓—`pointblank`PUBG Mobile`pubg`No—✓`pubgmobile`, `pubgm`, `pubgid`VALORANT`valorant`No✓✓`val`Zenless Zone Zero`zenlesszonezero`**Yes**✓—`zzz`---

Usage
-----

[](#usage)

### Plain PHP

[](#plain-php)

```
