bartfeenstra / currency
This package is abandoned and no longer maintained.
The author suggests using the commercie/currency package instead.
dev-master
2013-07-11 08:54 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: 2016-10-14 13:47:46 UTC
README
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:
\BartFeenstra\Currency\Currency
is a basic class that serves as a container and a controller for working with the YAML resources.\BartFeenstra\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 bartfeenstra/currency)
- Drupal (through Currency)