Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bank Indonesia Rates Scraper

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.

About

Simple library to scrape Exchange Rates from Bank Indonesia

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages