alexshishkin / testcurrency
A currency calculator just for test purpose.
dev-master
2017-05-31 15:12 UTC
Requires
- php: ^7.0
Requires (Dev)
- phpunit/phpunit: ^6.1
This package is not auto-updated.
Last update: 2025-06-13 22:48:45 UTC
README
Test library for currency calculations.
The purpose of this simple code is only demonstration of my coding skill. And it's not completed yet.
Usage
$c = new Calculator('AED', 'USD');
$result = $c->convert(100);
ToDo
- add a mock object for convert request instead of comparision in the OpenExchangeLoader::getConvertValue()
- add more sources for exchange rates information.
- describe configuration of the calculator.
- do refactoring.
- add build and styles checks.
- write documentation