ikr / money-math-php

gmp-based arbitrary precision operations on currency amounts "XXX.YY"; because floats are BAD for representing money

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding more currency formats

CMCDragonkai opened this issue · comments

It would be nice to add more currency formats. Since most currency formats are similar, doesn't that mean something like USD and AUD and NZD would be the same format?

Since this is more precise than the other Money library https://github.com/mathiasverraes/money I'm planning to integrate this into an generic API billing library.

Oh, sure. We only have CHF, EUR, USD, GBP, and JPY supported, because we used nothing else in our apps yet. You're welcome to patch CurrencyTest.php and Currency.php with more codes, and make a pull request.