PHPackages                             vittominacori/flypme-php - 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. vittominacori/flypme-php

ActiveLibrary[API Development](/categories/api)

vittominacori/flypme-php
========================

A PHP wrapper for Flyp.me API

0.1.0(7y ago)120MITPHPPHP &gt;=7.0.0

Since Dec 13Pushed 7y ago1 watchersCompare

[ Source](https://github.com/vittominacori/flypme-php)[ Packagist](https://packagist.org/packages/vittominacori/flypme-php)[ Docs](https://github.com/vittominacori/flypme-php)[ RSS](/packages/vittominacori-flypme-php/feed)WikiDiscussions master Synced 2mo ago

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

Flyp.me for PHP
===============

[](#flypme-for-php)

A PHP wrapper for [Flyp.me](https://flyp.me/api) APIs

Install
-------

[](#install)

```
composer require vittominacori/flypme-php

```

Usage
-----

[](#usage)

### Prepare requirements

[](#prepare-requirements)

```
require __DIR__ . '/vendor/autoload.php';

use \FlypMe\FlypMe;
```

### Create client

[](#create-client)

```
$flypme = new FlypMe();
```

### Call APIs

[](#call-apis)

#### Create

[](#create)

Create a new order

Last param could be "invoiced\_amount" or "ordered\_amount".

You can optionally specify destination and refund\_address on the request.

```
$flypme->orderNew("LTC", "ZEC", "0.02", "t1SBTywpsDMKndjogkXhZZSKdVbhadt3rVt", "LajyQBeZaBA1NkZDeY8YT5RYYVRkXMvb2T", "invoiced_amount");
```

result:

```
{
  "order": {
    "uuid": "1b5929e7-0e6c-44a6-a428-e4db856d880e",
    "destination": "t1SBTywpsDMKndjogkXhZZSKdVbhadt3rVt",
    "exchange_rate": "0.5403268038",
    "ordered_amount": "0.00980653",
    "invoiced_amount": "0.02",
    "charged_fee": "0.001",
    "from_currency": "LTC",
    "to_currency": "ZEC"
  },
  "expires": 1199,
  "refund_address": "LajyQBeZaBA1NkZDeY8YT5RYYVRkXMvb2T"
}
```

#### Update

[](#update)

Update an order

Last param could be "invoiced\_amount" or "ordered\_amount".

You can optionally specify destination and refund\_address on the request.

```
$flypme->orderUpdate("1b5929e7-0e6c-44a6-a428-e4db856d880e", "LTC", "ZEC", "0.03", "t1SBTywpsDMKndjogkXhZZSKdVbhadt3rVt", "LajyQBeZaBA1NkZDeY8YT5RYYVRkXMvb2T", "invoiced_amount");
```

result:

```
{
  "order": {
    "uuid": "1b5929e7-0e6c-44a6-a428-e4db856d880e",
    "destination": "t1SBTywpsDMKndjogkXhZZSKdVbhadt3rVt",
    "exchange_rate": "0.5292734791",
    "ordered_amount": "0.0148782",
    "invoiced_amount": "0.03",
    "charged_fee": "0.001",
    "from_currency": "LTC",
    "to_currency": "ZEC"
  },
  "expires": 1199,
  "refund_address": "LajyQBeZaBA1NkZDeY8YT5RYYVRkXMvb2T"
}
```

#### Accept

[](#accept)

Accept an order

Accept an order by uuid

```
$flypme->orderAccept("1b5929e7-0e6c-44a6-a428-e4db856d880e");
```

result:

```
{
  "order": {
    "uuid": "1b5929e7-0e6c-44a6-a428-e4db856d880e",
    "destination": "t1SBTywpsDMKndjogkXhZZSKdVbhadt3rVt",
    "exchange_rate": "0.5292734791",
    "ordered_amount": "0.0148782",
    "invoiced_amount": "0.03",
    "charged_fee": "0.001",
    "from_currency": "LTC",
    "to_currency": "ZEC"
  },
  "expires": 1053,
  "deposit_address": "MHoWWcJzNH4aWUKvrtMwpqMggRRBsvB7va",
  "refund_address": "LajyQBeZaBA1NkZDeY8YT5RYYVRkXMvb2T"
}
```

#### Check

[](#check)

Check order status by uuid

Possible status are: WAITING\_FOR\_DEPOSIT, DEPOSIT\_RECEIVED, DEPOSIT\_CONFIRMED, EXECUTED, NEEDS\_REFUND, REFUNDED, CANCELED and EXPIRED.
Possible payment\_status are PENDING, UNDERPAY\_RECEIVED, UNDERPAY\_CONFIRMED, PAYMENT\_RECEIVED, PAYMENT\_CONFIRMED, OVERPAY\_RECEIVED, OVERPAY\_CONFIRMED. Orders with underpay or overpay will be refunded by the system.

```
$flypme->orderCheck("1b5929e7-0e6c-44a6-a428-e4db856d880e");
```

result:

```
{
    "status": "WAITING_FOR_DEPOSIT",
    "payment_status": "PENDING"
}
```

Result will also include 'confirmations' when the payment is in some XXX\_RECEIVED status.

```
{
    "confirmations": "3/47",
    "payment_status": "PAYMENT_RECEIVED",
    "status": "DEPOSIT_RECEIVED"
}
```

Result will also include 'txid' and 'txurl' when the order is EXECUTED.

```
{
    "payment_status": "PAYMENT_CONFIRMED",
    "status": "EXECUTED",
    "txid": "XXXXX",
    "txurl": "https://etherscan.io/tx/XXX"
}
```

#### Info

[](#info)

Get order full info

```
$flypme->orderInfo("1b5929e7-0e6c-44a6-a428-e4db856d880e");
```

result:

```
{
  "order": {
    "uuid": "1b5929e7-0e6c-44a6-a428-e4db856d880e",
    "destination": "t1SBTywpsDMKndjogkXhZZSKdVbhadt3rVt",
    "exchange_rate": "0.5292734791",
    "ordered_amount": "0.0148782",
    "invoiced_amount": "0.03",
    "charged_fee": "0.001",
    "from_currency": "LTC",
    "to_currency": "ZEC"
  },
  "expires": 961,
  "status": "WAITING_FOR_DEPOSIT",
  "payment_status": "PENDING",
  "deposit_address": "MHoWWcJzNH4aWUKvrtMwpqMggRRBsvB7va",
  "refund_address": "LajyQBeZaBA1NkZDeY8YT5RYYVRkXMvb2T"
}
```

Result will also include 'confirmations' when the payment is in some XXX\_RECEIVED status.

```
{
  "order": {
    "uuid": "1b5929e7-0e6c-44a6-a428-e4db856d880e",
    (...)
  },
  (...)
  "confirmations": "47/47"
}
```

Result will also include 'txid' and 'txurl' when the order is EXECUTED.

```
{
  "order": {
    "uuid": "1b5929e7-0e6c-44a6-a428-e4db856d880e",
    (...)
  },
  (...)
  "txid": "XXXXX",
  "txurl": "https://etherscan.io/tx/..."
}
```

#### Cancel order

[](#cancel-order)

Cancel a pending order

```
$flypme->orderCancel("1b5929e7-0e6c-44a6-a428-e4db856d880e");
```

result:

```
{
    "result": "ok"
}
```

#### Add refund

[](#add-refund)

Add a refund address for orders not having one

```
$flypme->addRefund("fc0d5579-5921-4097-8e5c-7e5ec8e7a2ea", "LajyQBeZaBA1NkZDeY8YT5RYYVRkXMvb2T");
```

result:

```
{
    "result": "ok"
}
```

#### Query rates

[](#query-rates)

Get exchange rates

```
$flypme->dataExchangeRates();
```

result:

```
{
    "LTC-BTC": "0.0174777496",
    "BTC-LTC": "55.724760293",
    (...)
    "CREA-FYP": "2.06496",
    "FYP-CREA": "0.3423985733"
}
```

#### Query active currencies

[](#query-active-currencies)

Get available currencies information

A currency needs to have both exchange and send set to true to be enabled for the accountless exchange. Confirmation time is the expected time in minutes (approximate). Other parameters are self explanatory.

```
$flypme->currencies();
```

result:

```
{
    "BTC": {
        "code": "BTC",
        "precision": 8,
        "display_precision": 4,
        "created_at": "2014-02-04T02:28:37.000Z",
        "updated_at": "2017-12-12T17:03:52.000Z",
        "name": "Bitcoin",
        "website": "https://bitcoin.org/",
        "confirmation_time": 20,
        "default": false,
        "charged_fee": "0.0008",
        "currency_type": "CRYPTO",
        "exchange": true,
        "send": true
    },
    (...)
    "ZEC": {
        "code": "ZEC",
        "precision": 8,
        "display_precision": 4,
        "created_at": "2017-02-24T11:41:27.000Z",
        "updated_at": "2017-12-12T14:44:02.000Z",
        "name": "Zcash",
        "website": "https://z.cash/",
        "confirmation_time": 5,
        "default": false,
        "charged_fee": "0.0008",
        "currency_type": "CRYPTO",
        "exchange": true,
        "send": true
    }
}
```

#### Query limits

[](#query-limits)

Get max and min limits in $toCurrency. To get the limits in $fromCurrency you must calculate it using the exchange rate.

```
// $flypme->orderLimits($fromCurrency, $toCurrency)
$flypme->orderLimits('BTC', 'ETH');
```

result:

```
{
  "min": "0.006",
  "max": "7.26915022"
}
```

License
-------

[](#license)

Code released under the [MIT License](https://github.com/vittominacori/flypme-php/blob/master/LICENSE).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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 ~96 days

Total

5

Last Release

2684d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe45c007b95c82c28ab02b581ad052d19122547e89c215e84990e7a835a45816?d=identicon)[vittominacori](/maintainers/vittominacori)

---

Top Contributors

[![vittominacori](https://avatars.githubusercontent.com/u/8151143?v=4)](https://github.com/vittominacori "vittominacori (7 commits)")

---

Tags

flypmephpclientcryptoexchangeflypme

### Embed Badge

![Health badge](/badges/vittominacori-flypme-php/health.svg)

```
[![Health](https://phpackages.com/badges/vittominacori-flypme-php/health.svg)](https://phpackages.com/packages/vittominacori-flypme-php)
```

###  Alternatives

[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k22.6M232](/packages/openai-php-client)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69333.0M114](/packages/algolia-algoliasearch-client-php)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[vittominacori/coinmarketcap-php

A PHP wrapper for CoinMarketCap API

2233.1k](/packages/vittominacori-coinmarketcap-php)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)

PHPackages © 2026

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