PHP code example of kadekjayak / bi-rates
1. Go to this page and download the library: Download kadekjayak/bi-rates 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/ */
kadekjayak / bi-rates example snippets
$BiRates = new \Kadekjayak\BiRates\BiRates();
// Get All Rates
$BiRates->getRates();
// Get Specific Rates
$BiRates->getRates('USD');
// Output All Rates
Array (
....
[AUD] => Array
(
[sell] => 9884.58
[buy] => 9784.23
)
....
)
// Output Specific Rates
Array
(
[sell] => 9884.58
[buy] => 9784.23
)