This is a simple library for working with free.currencyconverterapi.com. Be sure that you signup and get your api token from there.
https://free.currencyconverterapi.com/free-api-key
composer require neonexxa/currency-converter
Just download any of the release or clone this repository. Feel free to use the way you want it.
Be sure that you save the result. Result you get the is the amount after convertion.
use Neonexxa\CurrencyConverter\CurrencyConverter;
$converterclass = new CurrencyConverter([
'api_key' => 'your_api_key',
'currency' => 'USD_MYR' //example for converting USD to MYR
]);
$converted_amount = $converterclass->convert("1460");
can visit the site currencyconverterapi with your api token https://free.currencyconverterapi.com/api/v6/currencies?apiKey=your_api_key you will get the result in json.
nothing yet ..