acromedia / currency
0.9.0
2016-10-17 21:46 UTC
Requires (Dev)
- phpunit/phpunit: 3.7.*
Suggests
- php: To use the PHP helpers, you need PHP 5.3 or higher.
- symfony/yaml: To use the PHP helpers, you need symfony/yaml 2.1.
This package is not auto-updated.
Last update: 2024-11-13 21:06:57 UTC
README
This is forked from commercie/currency, which has diverged from bartfeenstra/currency. This is the version required by Currency if you're using Composer Manager instead of the module's built-in autoloader and vendor dir.
Introduction
A language-independent library that provides metadata for current and historic currencies:
- ISO 4217 currency codes and numbers
- Currency signs
- 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
- Currency information is stored in YAML files in
/resources
. - PHP helpers:
\AcroMedia\Currency\Currency
is a basic class that serves as a container and a controller for working with the YAML resources.\AcroMedia\Curency\Input
contains a parser for user input.
Requirements
The library does not have any global requirements.
Testing
- PHPUnit 3.7.*
Resources
- Any YAML parser.
PHP
- PHP 5.3.x or higher
- Symfony YAML 2.1.*
Integrates with
- Composer (as acromedia/currency)
- Drupal (through Currency)