alessandrominoccheri/currency-converter

A library to convert your price from a currency to another

v2.0.6 2019-04-16 21:19 UTC

This package is auto-updated.

Last update: 2024-10-17 08:49:40 UTC


README

Scrutinizer Code Quality Code Coverage Latest Stable Version License Build Status Total Downloads

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 convertlike this

You need also to pass an apikey generated from here:

CurrencyConverterApi

$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