PHPackages                             leodido/moneylaundry - 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. [Search &amp; Filtering](/categories/search)
4. /
5. leodido/moneylaundry

ActiveLibrary[Search &amp; Filtering](/categories/search)

leodido/moneylaundry
====================

Collection of utilities to filter and validate money

v0.2.0(11y ago)372[8 issues](https://github.com/leodido/moneylaundry/issues)MITPHPPHP &gt;=5.4

Since Apr 17Pushed 11y ago2 watchersCompare

[ Source](https://github.com/leodido/moneylaundry)[ Packagist](https://packagist.org/packages/leodido/moneylaundry)[ RSS](/packages/leodido-moneylaundry/feed)WikiDiscussions master Synced yesterday

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

MoneyLaundry
============

[](#moneylaundry)

[![Latest Stable Version](https://camo.githubusercontent.com/a7a1e38c288b60a39d4fc759aa208ca4c6ae4db655053a7a44b99b977b66eb36/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c656f6469646f2f6d6f6e65796c61756e6472792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/leodido/moneylaundry)

Collection of utilities to filter and validate money with **i18n** in mind.

This library includes a series of classes aimed at **filtering**, **validating**, **formatting**, and **cleaning up** of monetary and currency values.

[![breaking bad laundry](bb.jpg)](bb.jpg)

Components
----------

[](#components)

### Filters

[](#filters)

Residing in `MoneyLaundry\Filter` namespace.

1. `Uncurrency`

    Give him a currency and get the corresponding amount, if the input was correctly formatted according to the chosen locale and filter options
2. `Currency`

    Give him a number, choose a locale and get back a localized currency amount

### Validators

[](#validators)

Residing in `MoneyLaundry\Validator` namespace.

1. `Currency`

    Validate the input as a valid and well-formatted currency amount for the given locale.

Examples
--------

[](#examples)

**WIP**

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

[](#installation)

Add `leodido/moneylaundry` to your `composer.json`.

```
{
   "require": {
       "leodido/moneylaundry": "v0.2.0"
   }
}
```

Development
-----------

[](#development)

First of all give it a `composer install`.

Then you can run tests:

1. Unit tests suite

    ```
    vendor/bin/phpunit -c $PWD/unit.xml

    ```

    - Almost completely covered.
2. Integration tests suite \[**WIP**\]

    ```
    vendor/bin/phpunit -c $PWD/integration.xml

    ```

    - More than 45K tests will be executed
    - Results available in `data` directory

Authors
-------

[](#authors)

Main contributors (i.e., authors) are:

- Leo Di Donato, a.k.a. **leodido** - [github](http://git.io/leodido) - [@leodido](http://twitter.com/leodido)
- Leonardo Grasso, a.k.a. **leogr** - [github](http://github.com/leogr)

---

[![Analytics](https://camo.githubusercontent.com/ef6a79e43d267263e6408a264b707bd986812dc3fe0eef5bb268fd81f2a6c19f/68747470733a2f2f67612d626561636f6e2e61707073706f742e636f6d2f55412d34393635373137362d312f6d6f6e65796c61756e647279)](https://github.com/igrigorik/ga-beacon)

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

4095d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/120051?v=4)[Leo Di Donato](/maintainers/leodido)[@leodido](https://github.com/leodido)

---

Top Contributors

[![leodido](https://avatars.githubusercontent.com/u/120051?v=4)](https://github.com/leodido "leodido (42 commits)")[![leogr](https://avatars.githubusercontent.com/u/3390997?v=4)](https://github.com/leogr "leogr (20 commits)")

---

Tags

validatormoneycurrencylocalizationconverti18nfilterlocalecurrenciesamountuncurrency

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/leodido-moneylaundry/health.svg)

```
[![Health](https://phpackages.com/badges/leodido-moneylaundry/health.svg)](https://phpackages.com/packages/leodido-moneylaundry)
```

###  Alternatives

[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7865.8M47](/packages/akaunting-laravel-money)[laravel-lang/publisher

Localization publisher for your Laravel application

2169.0M51](/packages/laravel-lang-publisher)[aura/filter

Filters to validate and sanitize objects and arrays.

172576.5k12](/packages/aura-filter)[laravel-lang/common

Easily connect the necessary language packs to the application

1593.8M34](/packages/laravel-lang-common)[wandersonwhcr/romans

A Simple PHP Roman Numerals Library

45412.8k8](/packages/wandersonwhcr-romans)[cartalyst/converter

A framework agnostic measurement conversion and formatting package featuring multiple types of measurements and currency conversion.

91488.9k7](/packages/cartalyst-converter)

PHPackages © 2026

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