PHP code example of shellect / crb-exchange-lib
1. Go to this page and download the library: Download shellect/crb-exchange-lib 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/ */
shellect / crb-exchange-lib example snippets
rivateCoolLib\Currency;
use PrivateCoolLib\ExchangedAmount;
$amount = new ExchangedAmount(Currency::USD, Currency::BYN, 100.0);
var_dump($amount->toDecimal());