The jsonrates API provides reliable, fast and free exchange rates and currency conversion for 168 currencies. All exchange rates are updated every 10 minutes and were collected from several providers. jsonrates is perfect for developers who need a free and simple service for getting exchange rates instead of paying hundreds of dollar for the most providers.
- Exchange Rates
- Currency Conversion
- Historical Data
- Locale Transformation
Website: jsonrates.com
Install the latest version with composer require jsonrates/api-client
require 'vendor/autoload.php';
$jsonrates = new \Jsonrates\Client('YOUR-API-KEY');
Download and extract the latest release
to /your/libs/jsonrates/
require_once '/your/libs/jsonrates/php-client/src/Jsonrates/Client.php';
$jsonrates = new \Jsonrates\Client('YOUR-API-KEY');
$result = $jsonrates
->from('USD')
->to('EUR')
->get();
$result = $jsonrates
->base('USD')
->amount(2.99)
->convert();
$result = $jsonrates
->from('XBT')
->to('USD')
->dateStart('2014-11-02')
->dateEnd('2014-11-05')
->historical();
$result = $jsonrates
->from('en_GB')
->to('de_DE')
->locale();
See: jsonrates.com/docs