PHP code example of vittominacori / flypme-php

1. Go to this page and download the library: Download vittominacori/flypme-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

vittominacori / flypme-php example snippets




use \FlypMe\FlypMe;

$flypme = new FlypMe();

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

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

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

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

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

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

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

$flypme->dataExchangeRates();

$flypme->currencies();

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

composer