commercie/currency

1.2.0 2022-09-11 08:27 UTC

This package is auto-updated.

Last update: 2024-09-11 13:10:27 UTC


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.