leodido/moneylaundry
最新稳定版本:v0.2.0
Composer 安装命令:
composer require leodido/moneylaundry
包简介
Collection of utilities to filter and validate money
关键字:
README 文档
README
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.
-
UncurrencyGive him a currency and get the corresponding amount, if the input was correctly formatted according to the chosen locale and filter options
-
CurrencyGive him a number, choose a locale and get back a localized currency amount
Validators
Residing in MoneyLaundry\Validator namespace.
-
CurrencyValidate the input as a valid and well-formatted currency amount for the given locale.
Examples
WIP
Installation
Add leodido/moneylaundry to your composer.json.
{
"require": {
"leodido/moneylaundry": "v0.2.0"
}
}
Development
First of all give it a composer install.
Then you can run tests:
-
Unit tests suite
vendor/bin/phpunit -c $PWD/unit.xml- Almost completely covered.
-
Integration tests suite [WIP]
vendor/bin/phpunit -c $PWD/integration.xml-
More than 45K tests will be executed
-
Results available in
datadirectory
-
Authors
Main contributors (i.e., authors) are:
统计信息
- 总下载量: 72
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-21
