Download the PHP package leodido/moneylaundry without Composer
On this page you can find all versions of the php package leodido/moneylaundry. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download leodido/moneylaundry
More information about leodido/moneylaundry
Files in leodido/moneylaundry
Package moneylaundry
Short Description Collection of utilities to filter and validate money
License MIT
Informations about the package moneylaundry
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.
Components
Filters
Residing in MoneyLaundry\Filter
namespace.
-
Uncurrency
Give him a currency and get the corresponding amount, if the input was correctly formatted according to the chosen locale and filter options
-
Currency
Give him a number, choose a locale and get back a localized currency amount
Validators
Residing in MoneyLaundry\Validator
namespace.
-
Currency
Validate the input as a valid and well-formatted currency amount for the given locale.
Examples
WIP
Installation
Add leodido/moneylaundry
to your composer.json
.
Development
First of all give it a composer install
.
Then you can run tests:
-
Unit tests suite
- Almost completely covered.
-
Integration tests suite [WIP]
-
More than 45K tests will be executed
- Results available in
data
directory
-
Authors
Main contributors (i.e., authors) are:
All versions of moneylaundry with dependencies
zendframework/zend-i18n Version ~2.2
zendframework/zend-filter Version ~2.2
zendframework/zend-validator Version ~2.2