Skip to content

kadekjayak/bi-rates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages