Closed Marcin-TA closed 2 years ago
Hi, was this a mistake?
Hi, not really. Some of the country's currency IOS is still missing.
Hi, a quick search shows that the currencies you list are not in use anymore.
They're not part of the official ISO currency list, that's why they're not included in this project.
You may still use them by creating a Currency
instance, though!
Hi Ben! Good idea with new Currency
instance. Is that gonna be sth like new Currency('TES', 1234, 'TEST', 12344);
?
Yes, but only if you want 12344
decimal digits :slightly_smiling_face:
As per the docs:
use Brick\Money\Currency;
use Brick\Money\Money;
$bitcoin = new Currency(
'XBT', // currency code
0, // numeric currency code, useful when storing monies in a database; set to 0 if unused
'Bitcoin', // currency name
8 // default scale
);
Hi!
I noticed you are missing a few country currencies. The list is significant, see below: