commercie / currency
Installs: 510 436
Dependents: 2
Suggesters: 0
Security: 0
Stars: 9
Watchers: 3
Forks: 5
Open Issues: 1
Requires
- php: ~5.5 || ~7.0 || ~8.0
- ext-json: *
Requires (Dev)
- justinrainbow/json-schema: ~5.2
- phpunit/phpunit: ~9.0
Suggests
- drupal/currency: Integrates this package with Drupal.
README
Introduction
A library that provides metadata for current and historic currencies:
- ISO 4217 currency codes and numbers
- Currency signs, both official and unofficial
- The number of decimals a currency has
- Where (ISO 3166 country codes) and when (ISO 8601 dates) currencies were and are used
- Fixed exchange rates (usually historic)
Usage
- Currencies can be loaded through
\Commercie\Currency\ResourceRepository
. \Commercie\Currency\InputInterface
is capable of parsing user-input numbers.