Value Object representing a currency using ISO-4217 specifications.
composer require tiny-blocks/currency
The library exposes a concrete implementation through the Currency
enum. Besides, the alphabetic code, you can
get the default amount fraction digits for the respective currency.
$currency = Currency::USD;
$currency->name; # USD
$currency->value; # USD
$currency->getFractionDigits(); # 2
Currency is licensed under MIT.
Please follow the contributing guidelines to contribute to the project.