2017 © Pedro Peláez
 

library moneylaundry

Collection of utilities to filter and validate money

image

leodido/moneylaundry

Collection of utilities to filter and validate money

  • Friday, April 17, 2015
  • by leodido
  • Repository
  • 3 Watchers
  • 2 Stars
  • 63 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 8 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

MoneyLaundry

Latest Stable Version, (*1)

Collection of utilities to filter and validate money with i18n in mind., (*2)

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

breaking bad laundry, (*4)

Components

Filters

Residing in MoneyLaundry\Filter namespace., (*5)

  1. Uncurrency, (*6)

    Give him a currency and get the corresponding amount, if the input was correctly formatted according to the chosen locale and filter options, (*7)

  2. Currency, (*8)

    Give him a number, choose a locale and get back a localized currency amount, (*9)

Validators

Residing in MoneyLaundry\Validator namespace., (*10)

  1. Currency, (*11)

    Validate the input as a valid and well-formatted currency amount for the given locale., (*12)

Examples

WIP, (*13)

Installation

Add leodido/moneylaundry to your composer.json., (*14)

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

Development

First of all give it a composer install., (*15)

Then you can run tests:, (*16)

  1. Unit tests suite, (*17)

    vendor/bin/phpunit -c $PWD/unit.xml
    
    • Almost completely covered.
  2. Integration tests suite [WIP], (*18)

    vendor/bin/phpunit -c $PWD/integration.xml
    
    • More than 45K tests will be executed, (*19)

    • Results available in data directory, (*20)

Authors

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


Analytics, (*22)

The Versions

17/04 2015

dev-master

9999999-dev

Collection of utilities to filter and validate money

  Sources   Download

MIT

The Requires

 

The Development Requires

filter validator locale i18n localization currency money convert amount currencies uncurrency

17/04 2015

dev-develop

dev-develop

Collection of utilities to filter and validate money

  Sources   Download

MIT

The Requires

 

The Development Requires

filter validator locale i18n localization currency money convert amount currencies uncurrency

17/04 2015

v0.2.0

0.2.0.0

Collection of utilities to filter and validate money

  Sources   Download

MIT

The Requires

 

The Development Requires

filter validator locale i18n localization currency money convert amount currencies uncurrency