Download the PHP package karyasystem/rupiah-helper without Composer
On this page you can find all versions of the php package karyasystem/rupiah-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download karyasystem/rupiah-helper
More information about karyasystem/rupiah-helper
Files in karyasystem/rupiah-helper
Package rupiah-helper
Short Description An advanced and flexible Rupiah Currency Helper for Laravel. Provides functions for formatting numbers into Rupiah format (IntToRupiah), converting Rupiah format back to integers (RupiahToInt), and converting numbers to Indonesian text (Terbilang). Includes extensive options to customize the currency format to fit your requirements.
License MIT
Informations about the package rupiah-helper
Rupiah Helper
An advanced and flexible Rupiah Currency Helper for Laravel. This package provides functions to format numbers into Rupiah format (IntToRupiah
), convert Rupiah format back to integers (RupiahToInt
), and convert numbers to Indonesian text (Terbilang
). It includes extensive options to customize the currency format to suit your needs, making it a powerful tool for handling Rupiah in Laravel applications.
Features
- IntToRupiah: Format integers into Rupiah currency (IDR or Rp) with customizable options.
- RupiahToInt: Convert Rupiah-formatted strings back to integers.
- Terbilang: Convert numbers to Indonesian text representation (terbilang).
Installation
To install the package, run the following command in your Laravel project:
Usage
IntToRupiah
Use this function to format an integer into Rupiah currency format
options
currency
: (optional) 'Rp' or 'IDR' (default is 'Rp')-
format
: (optional) Choose to display thousands separator, decimal point, etc.RupiahToInt
Use this function to convert a Rupiah-formatted string back to an integer.
Terbilang
Use this function to convert numbers into their Indonesian text representation.
Contributing
Contributions are always welcome!
See contributing.md
for ways to get started.
Please adhere to this project's code of conduct
.
License
This package is open-source and available under the MIT License.