currency-converter-php icon indicating copy to clipboard operation
currency-converter-php copied to clipboard

Exchange rates/Currency Converter Library for PHP

Results 6 currency-converter-php issues
Sort by recently updated
recently updated
newest added

Adapter for cache libraries that implement PSR-6 (https://www.php-fig.org/psr/psr-6/)

Fixes https://github.com/ojhaujjwal/currency-converter-php/issues/27

- new provider for the frankfurter api (https://www.frankfurter.app/) - the base url can be set via constructor to be able to run a private instance of the currency service -...

The docs state that you should set cache timeout like so: ``` $cacheAdapter->setCacheTimeout(\DateInterval::createFromDateString('123 second')); ``` Which is correct, but potentially misleading since if you do that: ``` $cacheAdapter->setCacheTimeout(\DateInterval::createFromDateString('2 day')); ```...

What about having a getSupportedCurrencies method for ProviderInterface ? Looks like such list is available calling https://api.fixer.io/latest with no parameters. Would be great to have a method to get this.