Torann / laravel-currency

This provides Laravel with currency functions such as currency formatting and conversion using up-to-date exchange rates.
http://lyften.com/projects/laravel-currency
BSD 2-Clause "Simplified" License
392 stars 137 forks source link

Currency Converter #37

Closed halenharper closed 7 years ago

halenharper commented 8 years ago

Hi! Can you make currency converter in this package, like

$rate = currency($price, 'USD/EUR');
// $rate = ['value'=> $value, 'date' => $date]
$rate->getValue(); // 0.8768
//or
$price = 1;
$convert = currency($price, 'USD', 'EUR');
$convert = 0.8768;

if user default currency is same as in config file I use $inverse method. But if I use for each user different default currency this method can not be used.

Torann commented 8 years ago

Sorry, but I'm not entirely sure what you're asking

Torann commented 7 years ago

Looking this over again I think I get it. The conversation part of the package was a bit confusing. It's been fully rewritten in version 1.0. I should have it fully released next week sometime