PHPackages                             bobel/payeer-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. [Payment Processing](/categories/payments)
4. /
5. bobel/payeer-client

ActiveLibrary[Payment Processing](/categories/payments)

bobel/payeer-client
===================

Payeer Trade API Client.

v1.0.0(3y ago)14MITPHPPHP ^8.1.1

Since Jun 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/luckydimdim/payeer-client)[ Packagist](https://packagist.org/packages/bobel/payeer-client)[ RSS](/packages/bobel-payeer-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

Payeer Trade API Client
=======================

[](#payeer-trade-api-client)

###### Installation

[](#installation)

```
composer require bobel\payeer-client
```

###### Testing

[](#testing)

```
composer init-pest
composer test
```

###### Init the client

[](#init-the-client)

```
$api = new PayeerClient(
    id: 'bd443f00-092c-4436-92a4-a704ef679e24',
    key: 'your_key');
```

###### Check connection

[](#check-connection)

```
$result = $api->isOk();
```

Returns `IsOkResponse` object.
*Throws IsOkException.*

###### Run WebSocket Server

[](#run-websocket-server)

```
$webSocket = new WebSocketServer(
    id: 'bd443f00-092c-4436-92a4-a704ef679e24',
    key: 'your_key');

$webSocket->run();
```

###### WebSocket request/response format

[](#websocket-requestresponse-format)

**Request**

```
{
  "method": "rates",
  "params": {
    "currencyPairs": [
      ["BTC", "USD"],
      ["BTC", "RUB"]
    ],
    "action": "Action::Buy",
    "dateFrom": 1630443600,
    "dateTo": 1633035599,
    "pageSize": 3
  }
}
```

**Response**

```
{
  "success": true,
  "limits": {
    "interval": "min",
    "intervalNumber": 1,
    "limit": 600
  },
  "data": [
    {
      "currencyPair": ["BTC", "USD"],
      "pricePrecision": 2,
      "minPrice": "4375.74",
      "maxPrice": "83139.00",
      "minAmount": 0.0001,
      "minValue": 0.5,
      "feeMakerPercent": 0.01,
      "feeTakerPercent": 0.095
    },
    {
      "currencyPair": ["BTC", "RUB"],
      "pricePrecision": 2,
      "minPrice": "326269.32",
      "maxPrice": "6199117.08",
      "minAmount": 0.0001,
      "minValue": 20,
      "feeMakerPercent": 0.01,
      "feeTakerPercent": 0.095
    }
  ]
}
```

###### Get rates

[](#get-rates)

###### Get rates by criteria

[](#get-rates-by-criteria)

```
// Get all rates
$result = $api->rates();

// Get rates by criteria
$result = $api->rates([
    ["BTC", "USD"],
    ["BTC", "RUB"]
]);
```

Returns `RatesResponse`.
*Throws ClientException.*

###### Get stats

[](#get-stats)

```
$result = $api->stats([
    ["BTC", "USD"]
]);
```

Returns `StatsResponse`.

###### Get orders

[](#get-orders)

```
$result = $api->orders([
    ["BTC", "USD"],
    ["BTC", "RUB"]
]);
```

Returns `OrdersResponse`.

###### Get trades

[](#get-trades)

```
$result = $api->trades([
    ["BTC", "USD"],
    ["BTC", "RUB"]
]);
```

Returns `TradesResponse`.

###### Get my trades

[](#get-my-trades)

```
// Get all trades
$result = $api->myTrades();

// Get specific trades by criteria
$result = $api->myTrades(
        currencyPairs: [
            ["BTC", "USD"],
            ["BTC", "RUB"]
        ],
        action: Action::Buy,
        dateFrom: 1630443600,
        dateTo: 1633035599,
        pageSize: 3);
```

Returns `MyTradesResponse`.

###### Get balance

[](#get-balance)

```
$result = $api->balance();
```

Returns `BalanceResponse`.

Order related operations
------------------------

[](#order-related-operations)

###### List orders

[](#list-orders)

```
    // Get all my orders
    $result = $api->order->list(status: Status::Opened);

    // Get my orders by criteria
    $result = $api->order->list(
        status: Status::Opened,
        currencyPairs: [
            ["BTC", "USD"],
            ["BTC", "RUB"]
        ],
        action: Action::Buy);

    // Get all orders
    $result = $api->order->list(pageSize: 3);

    // Get all orders by criteria
    $result = $api->order->list(
        status: Status::Canceled,
        currencyPairs: [
            ["BTC", "USD"],
            ["BTC", "RUB"]
        ],
        action: Action::Buy,
        dateFrom: 1630443600,
        dateTo: 1633035599,
        pageSize: 3);
```

Returns `ListResponse`.

###### Cancel orders

[](#cancel-orders)

```
    // Cancel all orders
    $result = $api->order->cancel();

    // Cancel orders by criteria
    $result = $api->order->cancel(
        currencyPairs: [
            ["TRX", "RUB"],
            ["DOGE", "RUB"]
        ],
        action: Action::Buy);

    // Cancel exact order by ID
    $result = $api->order->cancel(37054293);
```

Returns `CancelResponse`.

###### Get order status

[](#get-order-status)

```
$result = $api->order->status(37054293);
```

Returns `StatusResponse`.

###### Create an order

[](#create-an-order)

```
$result = $api->order->create(
    currencyPairs: [
        ["TRX", "USD"]
    ],
    type: Type::Limit,
    action: Action::Buy,
    amount: 10,
    price: 0.08);
```

Returns `CreateResponseResponse`.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

1434d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6037944f81d4ef5139ed0c4b415ad24180d352a7056bf8c4a239be5934d9f3be?d=identicon)[Bobel](/maintainers/Bobel)

---

Top Contributors

[![luckydimdim](https://avatars.githubusercontent.com/u/9912132?v=4)](https://github.com/luckydimdim "luckydimdim (12 commits)")

---

Tags

clientpayeer

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/bobel-payeer-client/health.svg)

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

###  Alternatives

[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)

PHPackages © 2026

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