andreracodex/bi-exchange

A package to fetch exchange rates from Bank Indonesia

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/andreracodex/bi-exchange

v1.1.0 2024-12-28 06:21 UTC

This package is auto-updated.

Last update: 2025-12-22 03:05:47 UTC


README

A Laravel package to fetch exchange rates from Bank Indonesia (BI) and update them in your database. This package scrapes the exchange rates from the official Bank Indonesia website and allows you to easily integrate it into your Laravel application.

By: Tirta Rachmandiri

Features

  • Fetch exchange rates from Bank Indonesia.
  • Supports multiple currencies (AUD, EUR, USD, GBP, etc.).
  • Update the sell and buy rates in your database.
  • Simple Laravel command to trigger the rate fetch.

Installation

1. Install the Package

You can install this package via Composer. Run the following command in your Laravel project directory:

composer require andreracodex/bi-exchange

2. Get Rate from BI

Fetch exchange rates from Bank Indonesia (BI) and update them in your database.

php artisan ambil:rate

Automatic Migration

If you're using Laravel 5.5 or later, the migration will be automatically published when you install the package.

Manual Migration

If you want to manually publish the migration and models, you can use the following command (if something wrong):

php artisan vendor:publish --tag="bi"

Support & Donations

If you found this library helpful and would like to support its development:

Saweria

Your support helps maintain and improve this library. Thank you!