You can install the package via composer:
composer require currency-amount-converter/currency-amount-converter
You can publish the config file with:
php artisan vendor:publish --tag="currency-amount-converter-config"
You can use method chaining:
use Currency\CurrencyConverter\CurrencyConverter;
$currency = new CurrencyConverter();
$currency->convert(1)->value(); // 59.05
$currency = new CurrencyConverter();
$currency->convert(1, 'PHP')->value(); // 59.05
$currency = new CurrencyConverter();
$currency->convert(1, 'BGN')->value(); // 1.9558
$currency = new CurrencyConverter();
$currency->convert(2, 'BGN')->value(); // 3.9116
composer test
The MIT License (MIT). Please see License File for more information.