PHPackages                             aungmyokyaw/lapakgaming - 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. aungmyokyaw/lapakgaming

ActiveLibrary[API Development](/categories/api)

aungmyokyaw/lapakgaming
=======================

Laravel package for LapakGaming Reseller API integration

v1.0.1(10mo ago)016MITPHPPHP ^7.4|^8.0|^8.1|^8.2|^8.3|^8.4

Since Aug 26Pushed 10mo agoCompare

[ Source](https://github.com/aungmyokyaw97/LapakGaming)[ Packagist](https://packagist.org/packages/aungmyokyaw/lapakgaming)[ RSS](/packages/aungmyokyaw-lapakgaming/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

LapakGaming Reseller API
========================

[](#lapakgaming-reseller-api)

Laravel package for [LapakGaming](https://www.lapakgaming.com/) Reseller API integration.

About
-----

[](#about)

This package provides a simple and efficient method to integrate with LapakGaming Reseller API using Laravel. It supports all major operations including product management, order creation, and balance checking.

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

[](#installation)

```
composer require aungmyokyaw/lapakgaming
```

Configuration
-------------

[](#configuration)

You will need to publish the configuration file to your application:

```
php artisan vendor:publish --tag="lapakgaming-config"
```

After publishing, you will find the configuration file at `config/lapakgaming.php`. Fill out the necessary data:

- `api_key`: Your LapakGaming API Secret Key
- `environment`: 'development' or 'production'
- `callback_url`: Your webhook callback URL (optional)

Usage Examples
--------------

[](#usage-examples)

- [Get Categories](#get-categories)
- [Get Products](#get-products)
- [Get All Products](#get-all-products)
- [Get Best Products](#get-best-products)
- [Get Balance](#get-balance)
- [Order](#order)
- [Order Status](#order-status)
- [Supported Country Codes](#supported-country-codes)

Get Categories
--------------

[](#get-categories)

```
$categories = LapakGaming::getCategories();
```

Get Products
------------

[](#get-products)

#### Get Products by Category

[](#get-products-by-category)

```
// Get all products in a category
$products = LapakGaming::getProductsByCategory('VAL');

// Get products in category for specific country
$products = LapakGaming::getProductsByCategory('VAL', 'id');
```

#### Get Products by Product Code

[](#get-products-by-product-code)

```
// Get products by product code
$products = LapakGaming::getProductsByCode('VAL1650-S14');

// Get products by code for specific country
$products = LapakGaming::getProductsByCode('VAL1650-S14', 'my');
```

#### Get Products with Both Filters

[](#get-products-with-both-filters)

```
// Filter by both category and product code
$products = LapakGaming::getProductsByCategoryAndCode('VAL', 'VAL1650-S14', 'id');
```

Get All Products
----------------

[](#get-all-products)

```
$allProducts = LapakGaming::getAllProducts();
```

Get Best Products
-----------------

[](#get-best-products)

#### Get Best Products by Category

[](#get-best-products-by-category)

```
// Get best products by category
$bestProducts = LapakGaming::getBestProductsByCategory('ML');

// Get best products by category for specific country
$bestProducts = LapakGaming::getBestProductsByCategory('ML', 'id');
```

#### Get Best Products by Group Product Code

[](#get-best-products-by-group-product-code)

```
// Get best products by group product code
$bestProducts = LapakGaming::getBestProductsByGroupCode('ML1288_166');

// Get best products by group code for specific country
$bestProducts = LapakGaming::getBestProductsByGroupCode('ML1288_166', 'my');
```

#### Get Best Products with Both Filters

[](#get-best-products-with-both-filters)

```
// Filter by both category and group product code
$bestProducts = LapakGaming::getBestProductsByCategoryAndGroupCode('ML', 'ML1288_166', 'id');
```

Get Balance
-----------

[](#get-balance)

```
$balance = LapakGaming::getBalance();
```

Order
-----

[](#order)

#### Basic Order with Product Code

[](#basic-order-with-product-code)

```
// Simplest order - quantity defaults to 1
$order = LapakGaming::setProduct('ML78_8-S2')
                   ->setUser('123456789') // Game User ID
                   ->createOrder();
```

#### Order with Zone/Server Information

[](#order-with-zoneserver-information)

```
// For games requiring zone or server ID
$order = LapakGaming::setProduct('ML78_8-S2')
                   ->setUser('123456789', '2345') // User ID + Zone/Server ID
                   ->createOrder();
```

#### Order with Complete Additional Information

[](#order-with-complete-additional-information)

```
// For games requiring username
$order = LapakGaming::setProduct('ML78_8-S2')
                   ->setUser('123456789', '2345', 'additional_information') // User ID + Zone + Username
                   ->createOrder();
```

#### Order with Price Validation

[](#order-with-price-validation)

```
// Validate price to prevent order if price changed
$order = LapakGaming::setProduct('ML78_8-S2', 15000) // Product code + expected price
                   ->setUser('123456789', '2345', 'additional_information')
                   ->createOrder();
```

#### Order with Custom Quantity

[](#order-with-custom-quantity)

```
// Order multiple items
$order = LapakGaming::setProduct('ML78_8-S2')
                   ->setUser('123456789')
                   ->setQuantity(5) // Order 5 items
                   ->createOrder();
```

#### Order with Country Code

[](#order-with-country-code)

```
// Specify country for the order
$order = LapakGaming::setProduct('ML78_8-S2')
                   ->setUser('123456789')
                   ->setCountryCode('my') // Malaysia
                   ->createOrder();
```

#### Order with Login Game Details

[](#order-with-login-game-details)

```
// For games requiring login credentials
$order = LapakGaming::setProduct('LOGIN_GAME_PRODUCT')
                   ->setUser('123456789')
                   ->setOrderDetail('Password : mypass123 Nickname : PlayerOne Security code : 9876')
                   ->createOrder();
```

#### Order with Idempotency Protection

[](#order-with-idempotency-protection)

```
// Prevent duplicate orders with unique reference ID
$order = LapakGaming::setProduct('ML78_8-S2')
                   ->setUser('123456789')
                   ->setPartnerReferenceId('order-' . time()) // Unique reference
                   ->createOrder();
```

#### Order with Custom Callback URL

[](#order-with-custom-callback-url)

```
// Override default callback URL for this order
$order = LapakGaming::setProduct('ML78_8-S2')
                   ->setUser('123456789')
                   ->setCallbackUrl('https://yoursite.com/custom-callback') // Custom callback
                   ->createOrder();
```

#### Order using Group Product

[](#order-using-group-product)

```
// Order using group product instead of specific product code
$order = LapakGaming::setGroupProduct('mobile-legends')
                   ->setUser('123456789', '2345')
                   ->setCountryCode('id') // Indonesia
                   ->createOrder();
```

#### Complete Advanced Order

[](#complete-advanced-order)

```
// Order with all possible parameters
$order = LapakGaming::setProduct('ML78_8-S2', 15000) // Product + price validation
                   ->setUser('123456789', '2345', 'additional_information') // Complete user info
                   ->setQuantity(2) // Multiple items
                   ->setCountryCode('my') // Malaysia
                   ->setOrderDetail('Password : 123 Nickname : nick Security code : 1234') // Login details
                   ->setPartnerReferenceId('unique-order-' . time()) // Idempotency
                   ->setCallbackUrl('https://yoursite.com/lapakgaming/callback') // Custom callback
                   ->createOrder();
```

#### Parameter Usage Summary

[](#parameter-usage-summary)

MethodParameterRequiredExample`setProduct()`product\_code, priceproduct\_code required`setProduct('ML78_8-S2', 15000)``setGroupProduct()`group\_product, countrygroup\_product required`setGroupProduct('mobile-legends', 'id')``setUser()`user\_id, additional\_id, additional\_infouser\_id for most games`setUser('123456789', '2345', 'additional_information')``setQuantity()`count\_orderoptional (default: 1)`setQuantity(5)``setCountryCode()`country\_codeoptional`setCountryCode('my')``setOrderDetail()`orderdetailoptional`setOrderDetail('Password : 123')``setPartnerReferenceId()`partner\_reference\_idoptional`setPartnerReferenceId('unique-123')``setCallbackUrl()`override\_callback\_urloptional`setCallbackUrl('https://site.com/cb')`Order Parameters Explained
--------------------------

[](#order-parameters-explained)

Based on LapakGaming API documentation, here are all the parameters you can use when creating orders:

### Required Parameters

[](#required-parameters)

#### **Product Identification** (Choose One)

[](#product-identification-choose-one)

- **product\_code**: Specific product code from `getProductsByCategory()` or `getProductsByCode()`
- **group\_product**: Group product code from `getBestProductsByCategory()` or `getBestProductsByGroupCode()`

#### **Order Quantity**

[](#order-quantity)

- **count\_order**: Number of items to order (defaults to 1)

### Optional Parameters

[](#optional-parameters)

#### **User Information** (Game-specific)

[](#user-information-game-specific)

- **user\_id**: Game User ID (required for most games, optional for vouchers)
- **additional\_id**: Zone ID or Server ID (required for some games)
- **additional\_information**: Username ID (required for some games)

#### **Login Game Details**

[](#login-game-details)

- **orderdetail**: Detailed information for games requiring login credentials
    - Example: "Password : 123 Nickname : nick ingame Security code : 1234"

#### **Validation &amp; Control**

[](#validation--control)

- **price**: Price validation to prevent order if price changed
- **country\_code**: Country specification (optional, default: 'id')
- **partner\_reference\_id**: Unique identifier to prevent duplicate orders
- **override\_callback\_url**: Custom callback URL for this order

Order Status
------------

[](#order-status)

#### Check Status by Transaction ID

[](#check-status-by-transaction-id)

```
// Check by transaction ID (tid)
$status = LapakGaming::checkOrderStatusByTid('RA171341142175668140');
```

#### Check Status by Partner Reference ID

[](#check-status-by-partner-reference-id)

```
// Check by partner reference ID
$status = LapakGaming::checkOrderStatusByRefId('R123');
```

#### Check Status with Both Parameters

[](#check-status-with-both-parameters)

```
// Check with both transaction ID and partner reference ID
$status = LapakGaming::checkOrderStatusByTidAndRefId('RA171341142175668140', 'R123');
```

#### Check Status with Flexible Parameters

[](#check-status-with-flexible-parameters)

```
// Check by transaction ID only
$status = LapakGaming::checkOrderStatusBy('RA171341142175668140');

// Check by partner reference ID only
$status = LapakGaming::checkOrderStatusBy(null, 'R123');

// Check by both
$status = LapakGaming::checkOrderStatusBy('RA171341142175668140', 'R123');
```

Supported Country Codes
-----------------------

[](#supported-country-codes)

When using group products or country-specific operations, use these country codes:

- `id` - Indonesia (default)
- `my` - Malaysia
- `ph` - Philippines
- `th` - Thailand
- `us` - United States
- `br` - Brazil
- `vn` - Vietnam

License
-------

[](#license)

MIT License

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance55

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

303d ago

Major Versions

v0.1.1-beta → v1.0.02025-08-28

PHP version history (2 changes)v0.1.0-betaPHP ^7.4|^8.0|^8.1|^8.2|^8.3

v1.0.0PHP ^7.4|^8.0|^8.1|^8.2|^8.3|^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32431323?v=4)[Aung Myo Kyaw](/maintainers/aungmyokyaw97)[@aungmyokyaw97](https://github.com/aungmyokyaw97)

---

Top Contributors

[![aungmyokyaw97](https://avatars.githubusercontent.com/u/32431323?v=4)](https://github.com/aungmyokyaw97 "aungmyokyaw97 (10 commits)")

---

Tags

gaming-apilapakgaminglaravel-packagemobilelegendspubgreseller-apilaravelresellerTopupgaminglapakgaming

### Embed Badge

![Health badge](/badges/aungmyokyaw-lapakgaming/health.svg)

```
[![Health](https://phpackages.com/badges/aungmyokyaw-lapakgaming/health.svg)](https://phpackages.com/packages/aungmyokyaw-lapakgaming)
```

###  Alternatives

[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)[smodav/mpesa

M-Pesa API implementation

16167.1k1](/packages/smodav-mpesa)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.1k1](/packages/jasara-php-amzn-selling-partner-api)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

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

PHPackages © 2026

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