Download the PHP package fyyyn1210/kursbi without Composer

On this page you can find all versions of the php package fyyyn1210/kursbi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package kursbi

KursBI

Latest Version Total Downloads License

Paket PHP untuk mengambil data kurs mata uang dari Bank Indonesia (BI) untuk PHP & Laravel.

📋 Deskripsi

KursBI adalah library PHP yang memudahkan pengambilan data kurs mata uang dari API resmi Bank Indonesia. Paket ini mendukung:

🚀 Instalasi

Install via Composer:

💡 Penggunaan

Import Class

Inisialisasi

📖 Contoh Penggunaan

1. Mendapatkan Kurs USD Hari Ini

Return Value:

2. Mendapatkan Kurs Beberapa Mata Uang

Return Value:

3. Mendapatkan Kurs dengan Rentang Tanggal

Return Value:

4. Mendapatkan Kurs dengan Limit Data

Return Value:

5. Konversi Mata Uang dengan Jumlah Tertentu

Return Value:

6. Penggunaan Kompleks - Multiple Currency dengan Konversi

📚 API Reference

Method getKurs()

Parameters

Parameter Type Default Deskripsi
$mataUang string 'USD' Kode mata uang (bisa multiple, dipisah koma). Contoh: 'USD' atau 'USD,EUR,JPY'
$startDate string\|null null Tanggal mulai (format: Y-m-d). Jika null, akan menggunakan tanggal hari ini
$endDate string\|null null Tanggal akhir (format: Y-m-d). Jika null, akan menggunakan tanggal hari ini
$limit int\|null null Batas jumlah data yang dikembalikan per mata uang
$jumlah float\|null null Jumlah nominal untuk konversi mata uang

Return Value

Method ini mengembalikan array dengan struktur:

⚙️ Fitur

Caching

Library ini menggunakan Laravel Cache untuk menyimpan hasil request selama 6 jam. Cache key menggunakan format: kursbi_{kode_mata_uang}_{start_date}_{end_date}.

User-Agent Dinamis

Setiap request menggunakan User-Agent yang digenerate secara random dari kombinasi OS dan browser populer untuk menghindari blocking.

Error Handling

Jika terjadi error saat mengambil data dari BI, method akan mengembalikan array kosong dan error akan di-report menggunakan fungsi report() Laravel.

🎯 Mata Uang yang Didukung

Library ini mendukung semua mata uang yang tersedia di API Bank Indonesia, termasuk namun tidak terbatas pada:

📋 Requirements

🤝 Contributing

Kontribusi selalu diterima! Silakan buat pull request atau buka issue untuk bug report dan feature request.

📄 License

Library ini menggunakan lisensi MIT. Lihat file LICENSE untuk detail lengkap.

🐛 Bug Reports

Jika Anda menemukan bug, silakan buat issue di GitHub Issues dengan informasi:

  1. Versi PHP yang digunakan
  2. Versi Laravel yang digunakan
  3. Code snippet yang menyebabkan error
  4. Pesan error yang muncul

📞 Support

Jika Anda butuh bantuan atau memiliki pertanyaan, silakan:

🎉 Credits


⭐ Jangan lupa berikan star jika library ini membantu Anda!


All versions of kursbi with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
guzzlehttp/guzzle Version ^7.0
illuminate/support Version ^8.0|^9.0|^10.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fyyyn1210/kursbi contains the following files

Loading the files please wait ...