currency-converter
Php library to convert a currency into another
Work in progress
How to install
To install this library you can use composer and launch it from your CLI:
composer require alessandrominoccheri/currency-converter
Usage
If you want to use this library you need to create a new instance of CurrencyConverter
and after call the method convert
like this
You need also to pass an apikey generated from here:
$currencyConverter = new CurrencyConverter($yourApiKey);
$result = $currencyConverter->convert('EUR', 'USD', random_int(1, 999999));
Make
This project uses Makefile to run tasks.
-
make agile it create an overview of test case methods presented as full sentences
-
make test runs classic phpunit tests
-
make coverage create and open in browser code coverage