kadekjayak/bi-rates

Simple library to get currency rate from Bank Indonesia

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 1

Open Issues: 0

pkg:composer/kadekjayak/bi-rates

v1.0 2019-07-20 02:51 UTC

This package is auto-updated.

Last update: 2025-10-20 17:49:02 UTC


README

Library sederhana untuk mengambil kurs mata uang (Currency Rate) dari website Bank Indonesia.

Install

$ composer require kadekjayak/bi-rates

Usage

$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
)

Testing

$ phpunit

License

The MIT License (MIT). Please see License File for more information.