PHPackages                             mwesigwajoshua/money-out-putter - 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. mwesigwajoshua/money-out-putter

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

mwesigwajoshua/money-out-putter
===============================

MoneyOutputter is a versatile and easy-to-use PHP package designed for formatting and converting monetary amounts into both human-readable words and numeric representations. Ideal for applications that require displaying currency values in a clear and user-friendly manner, this package supports multiple currencies, ensuring that the output is accurate and formatted according to the rules of each currency's locale.

v1.0.1(1y ago)02MITPHP

Since Nov 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mwesigwajosh/MoneyOutPutter)[ Packagist](https://packagist.org/packages/mwesigwajoshua/money-out-putter)[ RSS](/packages/mwesigwajoshua-money-out-putter/feed)WikiDiscussions main Synced today

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

MoneyOutPutter 🏦💰
=================

[](#moneyoutputter-)

A simple PHP library to format currency amounts in both figures and words. Easily convert between ISO currency codes or numeric codes and get the formatted result with beautiful output.

Features 🚀
----------

[](#features-)

1. **Currency Code Lookup**: Format currency amounts using ISO currency codes (e.g., **USD**, **UGX**).
2. **ISO Numeric Code Lookup**: Convert currency using ISO numeric codes (e.g., **840** for USD, **800** for UGX).
3. **Error Handling**: Throws exceptions for invalid currency or numeric codes.
4. **Formatting Options**:
    - Format amounts as **figures** (e.g., *USh 1,000,000*).
    - Format amounts **in words** (e.g., *"One million Ugandan Shillings"*).

Installation 📥
--------------

[](#installation-)

To install MoneyOutPutter via Composer, run the following command in your terminal:

```
$ composer require mwesigwajoshua/moneyoutputter
```

Usage Example 💡
---------------

[](#usage-example-)

### Example 1 (Format as Words)

[](#example-1-format-as-words)

```
require 'vendor/autoload.php';
use mwesigwajoshua\MoneyOutPutter;

$amount = "1,000,000"; // Amount should be passed as a string
$currencyCode = 'UGX'; // ISO currency code for Ugandan Shillings

// Get formatted amount in words
$formattedAmount = MoneyOutPutter::useCode($currencyCode, $amount);
echo $formattedAmount; // Output: **One million Ugandan Shillings**
```

### Example 2 (Format as Figures with Currency Symbol)

[](#example-2-format-as-figures-with-currency-symbol)

```
require 'vendor/autoload.php';
use mwesigwajoshua\MoneyOutPutter;

$amount = "1,000,000"; // Amount should be passed as a string
$currencyCode = 'UGX'; // ISO currency code for Ugandan Shillings

// Get formatted amount as figures with currency symbol
// **Note**: A **3rd argument** is passed as `true` to include currency symbol
$formattedAmount = MoneyOutPutter::useCode($currencyCode, $amount, true);
echo $formattedAmount; // Output: **USh 1,000,000**
```

### Example 3 (Using ISO num)

[](#example-3-using-iso-num)

```
require 'vendor/autoload.php';

use  mwesigwajoshua\MoneyOutPutter;

$amount =  "5225.50"; //Please note: amount should be passed as a string
$Isonum = '800'; // 800 is Ugandan Shilling ISOnum

$formattedAmount = MoneyOutPutter::useISONum($Isonum, $amount);
echo $formattedAmount; //output: **Five Thousand Two Hundred Twenty Five Ugandan Shillings And Fifty Five Cents**

$formattedAmount = MoneyOutPutter::useISONum($Isonum, $amount, true);
echo $formattedAmount; //output: **USh 5,225.50**
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

591d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/77533df36325b973a4b1930b204937440abf128ceaee7aac55598df7af7621ce?d=identicon)[mwesigwa joshua](/maintainers/mwesigwa%20joshua)

---

Top Contributors

[![mwesigwajosh](https://avatars.githubusercontent.com/u/77147815?v=4)](https://github.com/mwesigwajosh "mwesigwajosh (10 commits)")

---

Tags

currencyfigure-to-moneymoney-to-wordnumber-to-wordsphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mwesigwajoshua-money-out-putter/health.svg)

```
[![Health](https://phpackages.com/badges/mwesigwajoshua-money-out-putter/health.svg)](https://phpackages.com/packages/mwesigwajoshua-money-out-putter)
```

PHPackages © 2026

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