PHPackages                             unapi/helper-money - 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. unapi/helper-money

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

unapi/helper-money
==================

Unapi helper: money

1.3.2(4mo ago)04.7k2PHPPHP &gt;=7.1.0CI passing

Since Jan 23Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/xRubin/unapi-helper-money)[ Packagist](https://packagist.org/packages/unapi/helper-money)[ RSS](/packages/unapi-helper-money/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (2)Versions (9)Used By (2)

Unapi Money
===========

[](#unapi-money)

[![Build Status](https://github.com/xRubin/unapi-helper-money/workflows/CI/badge.svg)](https://github.com/xRubin/unapi-helper-money/actions)[![Latest Stable Version](https://camo.githubusercontent.com/55edb3b1a339cd5722cc4a3e596a83d1156ae9d9eab094c979b34cd3ef7026a0/687474703a2f2f706f7365722e707567782e6f72672f756e6170692f68656c7065722d6d6f6e65792f76)](https://packagist.org/packages/rubin/unapi-helper-money)[![Coverage Status](https://camo.githubusercontent.com/cb8d5cbcd0cb53cb4963e388a2d92ea2670b8d2de620d63cd58b53a930f881b0/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f78527562696e2f756e6170692d68656c7065722d6d6f6e65792f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/xRubin/unapi-helper-money?branch=master)[![PHP Version Require](https://camo.githubusercontent.com/44b89e62af946077bde3e3c8efa171938331821ed5bfdbf922f34e7b1015fa52/687474703a2f2f706f7365722e707567782e6f72672f756e6170692f68656c7065722d6d6f6e65792f726571756972652f706870)](https://packagist.org/packages/rubin/unapi-helper-money)

PHP implementation for the MoneyAmount pattern.

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

[](#installation)

With composer:

```
composer require unapi/helper-money
```

Usage
-----

[](#usage)

Create Money amount:

```
use unapi\helper\money\MoneyAmount;
use unapi\helper\money\Currency;
$money = new MoneyAmount(20.0, new Currency(Currency::EUR));
```

Create wallet:

```
use unapi\helper\money\Wallet;
use unapi\helper\money\MoneyAmount;
use unapi\helper\money\Currency;
$wallet = new Wallet([
    new MoneyAmount(20.0, new Currency(Currency::EUR))
    new MoneyAmount(10.0, new Currency(Currency::USD))
]);
$wallet->addMoney(
    new MoneyAmount(5.0, new Currency(Currency::EUR))
);
```

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance74

Regular maintenance activity

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~413 days

Recently: every ~220 days

Total

8

Last Release

147d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f3bbe4824398b494256466d4887e688c0d102afa2fc966cfd418124159607903?d=identicon)[xRubin](/maintainers/xRubin)

---

Top Contributors

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

---

Tags

moneyenumunapi

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/unapi-helper-money/health.svg)

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

###  Alternatives

[moneyphp/money

PHP implementation of Fowler's Money pattern

4.8k82.5M422](/packages/moneyphp-money)[myclabs/php-enum

PHP Enum implementation

2.7k227.9M637](/packages/myclabs-php-enum)[brick/money

Money and currency library

1.9k37.9M102](/packages/brick-money)[dasprid/enum

PHP 7.1 enum implementation

382146.0M11](/packages/dasprid-enum)[spatie/enum

PHP Enums

84529.1M68](/packages/spatie-enum)[florianv/swap

Exchange rates library for PHP

1.3k6.4M16](/packages/florianv-swap)

PHPackages © 2026

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