alessandrominoccheri / currency-converter
A library to convert your price from a currency to another
Installs: 58
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Type:project
Requires
- php: ^7.1.0
Requires (Dev)
README
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