Library sederhana untuk mengambil kurs mata uang (Currency Rate) dari website Bank Indonesia.
$ composer require kadekjayak/bi-rates$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
)$ phpunitThe MIT License (MIT). Please see License File for more information.