PHPackages                             mywaygames/api-client - 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. mywaygames/api-client

ActiveLibrary[API Development](/categories/api)

mywaygames/api-client
=====================

A PHP API client for Myway Games shop API

1.0(4y ago)27MITPHP

Since Feb 16Pushed 4y ago2 watchersCompare

[ Source](https://github.com/mywaygames/api-client)[ Packagist](https://packagist.org/packages/mywaygames/api-client)[ RSS](/packages/mywaygames-api-client/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

MywayGames API Client
=====================

[](#mywaygames-api-client)

*A client for MywayGames shop API*
----------------------------------

[](#a-client-for-mywaygames-shop-api)

MywayGames API Client is a PHP library that helps you integrate your MywayGames account into your own e-commerce system, allowing you to place orders, query balance, list products, sync prices automatically.

For more info please [view MywayGames API Documentation](https://mywaygames.docs.apiary.io/)

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

[](#installation)

Using composer

```
composer require mywaygames/api-client
```

**If you receive an error `Could not find a version of package mywaygames/api-client` please upgrade to composer 2**

From github

```
git clone https://github.com/mywaygames/api-client.git
cd api-client
composer install
```

Usage
-----

[](#usage)

After including vendor/autoload.php you can initiate the client like this:

```
$apiClient = new MywayGames\ApiClient;

// Set the API base URI, if you are not sure please contact your admin
$apiClient->setBaseUri('https://test.myway-games.com/api/v1/');
```

To get a test account (only available on test.myway-games.com):

```
var_dump($apiClient->createTestAccount()->response());
```

To authenticate with the API using your username/password:

```
$apiClient->auth(["username" => "YOUR_USERANEM","password" => "YOUR_USERANEM"]);
```

Authenticate using a valid API token (api\_key)

```
$apiClient->auth(["api_key" => "YOUR_API_KEY"]);
```

Get your account info

```
$apiClient->getUserData()->response()->userdata;
```

Get your account balance

```
$apiClient->getUserData()->response()->userdata->balance;
```

Get a list of main products

```
$apiClient->products()->response();
```

Get a list of ALL denominations

```
$apiClient->denominations('all')->response();
```

Get a list of main products

```
$apiClient->products()->response();
```

Get a list of denominations for a specific category i.e: 2

```
$apiClient->denominations(2)->response();
```

Create an order

```
$order_args = [];

// Unuque uuidv4 token that you need to generate to avoid placing duplicate orders.
$order_args['orderToken'] = $apiClient->generateToken();

// The denomination_id you want to buy "which you received by calling ->denominations()"
$order_args['denomination_id'] = 1;

// Optional, default is 1
$order_args['qty'] = 1;

// Required only if the product you want to order is a topup product "i.e has require_playerid = true"
$order_args['args'] = ["playerid" => "111"];

var_dump($apiClient->createOrder($order_args)->response());
```

Check the status of your order "Typically orders take 2 minutes to be processed"

```
$apiClient->orderDetails(21)->response();
```

Dependencies
------------

[](#dependencies)

MywayGames API Client uses guzzlehttp to connect to the remote API

DependencyREADMEGuzzlehttp[Github](https://github.com/guzzle/guzzle/blob/master/README.md)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

1599d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c752a60f72a0d4218e60b1df83a0751d9eea6662f1788a96e68f82c8de85aab?d=identicon)[MywayGames](/maintainers/MywayGames)

---

Top Contributors

[![mywaygames](https://avatars.githubusercontent.com/u/99610388?v=4)](https://github.com/mywaygames "mywaygames (1 commits)")

### Embed Badge

![Health badge](/badges/mywaygames-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/mywaygames-api-client/health.svg)](https://phpackages.com/packages/mywaygames-api-client)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M987](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M45](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

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

PHPackages © 2026

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