PHPackages                             karyasystem/rupiah-helper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. karyasystem/rupiah-helper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

karyasystem/rupiah-helper
=========================

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.

1.0.1(1y ago)236MITPHPPHP &gt;=7.3

Since Dec 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/karyasystem/rupiah-helper)[ Packagist](https://packagist.org/packages/karyasystem/rupiah-helper)[ RSS](/packages/karyasystem-rupiah-helper/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

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
--------

[](#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
------------

[](#installation)

To install the package, run the following command in your Laravel project:

```
  composer require karyasystem/rupiah-helper
```

Usage
-----

[](#usage)

#### `IntToRupiah`

[](#inttorupiah)

Use this function to format an integer into Rupiah currency format

```
use Rupiah;

$formattedRupiah = Rupiah::IntToRupiah(1000000, 'Rp'); // Rp 1,000,000
$formattedRupiah = Rupiah::IntToRupiah(1000000); // IDR 1,000,000 (default is 'IDR')
```

#### options

[](#options)

- `currency`: (optional) 'Rp' or 'IDR' (default is 'Rp')
- `format`: (optional) Choose to display thousands separator, decimal point, etc.

---

#### `RupiahToInt`

[](#rupiahtoint)

Use this function to convert a Rupiah-formatted string back to an integer.

```
$intValue = Rupiah::RupiahToInt('Rp 1,000,000'); // 1000000
```

---

#### `Terbilang`

[](#terbilang)

Use this function to convert numbers into their Indonesian text representation.

```
$text = Rupiah::Terbilang(1234567); // "Satu juta dua ratus tiga puluh empat ribu lima ratus enam puluh tujuh"
```

Contributing
------------

[](#contributing)

Contributions are always welcome!

See `contributing.md` for ways to get started.

Please adhere to this project's `code of conduct`.

License
-------

[](#license)

This package is open-source and available under the [MIT](https://choosealicense.com/licenses/mit/) License.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 61.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

568d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/191485409?v=4)[Karya System](/maintainers/karyasystem)[@karyasystem](https://github.com/karyasystem)

---

Top Contributors

[![imadehermanto](https://avatars.githubusercontent.com/u/48467488?v=4)](https://github.com/imadehermanto "imadehermanto (8 commits)")[![karyasystem](https://avatars.githubusercontent.com/u/191485409?v=4)](https://github.com/karyasystem "karyasystem (5 commits)")

---

Tags

formatterlaravelhelpercurrencyindonesiarupiah

### Embed Badge

![Health badge](/badges/karyasystem-rupiah-helper/health.svg)

```
[![Health](https://phpackages.com/badges/karyasystem-rupiah-helper/health.svg)](https://phpackages.com/packages/karyasystem-rupiah-helper)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
