waycambas8/kursbca

Pencaharian data kurs Bank BCA seluruh dunia

0.0.1 2021-03-27 07:27 UTC

This package is auto-updated.

Last update: 2025-05-24 20:21:44 UTC


README

GitHub Logo

This package retrieves the kurs data from BCA Bank

Include 13 currency around the world to IDR Indonesia Rupiah

  • Dollar America
  • Dollar Singapore
  • Euro
  • Dollar Australia
  • Kroner Denmark
  • Kronor Swedia
  • Dollar Canada
  • Franc Swiss
  • Dollar Islandia Baru
  • Ponsterling Inggris
  • Dollar Hong-Kong
  • Riyal Arab Saudi
  • Yuan China / Tiongkok

How To install

To run this project, install it locally using composer:

GitHub Logo_laravel

$ composer require waycambas8/kursbca
$ composer update

How to use

There is some YOUR_PARAMETER that you must be entered when you want to call the class/function

  • usd (Dollar America)
  • sgd (Dollar Singapore- Euro)
  • eur (Euro)
  • aud (Dollar Australia)
  • dkk (Kroner Denmark)
  • sek (Kronor Swedia)
  • cad (Dollar Canada)
  • chf (Franc Swiss)
  • nzd (Dollar Islandia Baru)
  • gbp (Ponsterling Inggris)
  • hkd (Dollar Hong-Kong)
  • sar (Riyal Arab Saudi)
  • cnh (Yuan China / Tiongkok)

next you have to call this class

\KursBca\ScrappyData

public function

kurs_bca(YOUR_PARAMETER)

How to Integrate with your Controller

open your controller, and put this code on your variable or using use

\KursBca\ScrappyData::kurs_bca(YOUR_PARAMATER)

Parameter Must be array and the name of ARRAY must be 'kode'

variable = array('kode' => 'usd')

Example

take the exchange rate data from the American dollar (usd) to the Indonesian rupiah (idr)

YOUR_VARIABLE = array('kode' => 'usd')

\KursBca\ScrappyData::kurs_bca(YOUR_VARIABLE)

Final

the datas automatically updated when the kurs BCA has been changed

update 0.0.2 will be done soon :)