PHPackages                             qadrlabs/php-rupiah - 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. qadrlabs/php-rupiah

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

qadrlabs/php-rupiah
===================

A lightweight PHP library to format and parse Indonesian Rupiah (IDR) currency values.

v1.0.0(1mo ago)01MITPHPPHP ^8.3

Since May 3Pushed 1mo agoCompare

[ Source](https://github.com/qadrLabs/php-rupiah)[ Packagist](https://packagist.org/packages/qadrlabs/php-rupiah)[ Docs](https://qadrlabs.com)[ RSS](/packages/qadrlabs-php-rupiah/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

php-rupiah
==========

[](#php-rupiah)

A lightweight PHP 8.3+ library to format and parse Indonesian Rupiah (IDR) currency values. Zero external dependencies.

Installation
------------

[](#installation)

composer require qadrlabs/php-rupiah

Usage
-----

[](#usage)

use QadrLabs\\Rupiah\\Rupiah; use QadrLabs\\Rupiah\\RupiahStyle;

// Standard Rp prefix (default) Rupiah::format(1500000); // "Rp 1.500.000"

// ISO currency code Rupiah::format(1500000, RupiahStyle::ISO); // "IDR 1.500.000"

// No prefix, useful for tables or custom rendering Rupiah::format(1500000, RupiahStyle::Plain); // "1.500.000"

// Float values are rounded to the nearest integer Rupiah::format(99999.5); // "Rp 100.000"

// Parse any of the above formats back to an integer Rupiah::parse('Rp 1.500.000'); // 1500000 Rupiah::parse('IDR 1.500.000'); // 1500000 Rupiah::parse('1.500.000'); // 1500000

Testing
-------

[](#testing)

composer test

License
-------

[](#license)

MIT

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance92

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

38d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4615a48cb79b2431f2ea5b15e9c35e80a4365a1a18d8747753d26da112dc0955?d=identicon)[doublegunz](/maintainers/doublegunz)

---

Tags

phpformattercurrencyindonesiarupiahIDR

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/qadrlabs-php-rupiah/health.svg)

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

PHPackages © 2026

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