Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2016-06-07 (4 months ago)  | | Not enough user ratings | | Total: 52 | | All time: 8,588 This week: 931 |
|
Description | | Author |
This class can fetch currency exchange rates from fixer.io.
It can takes a base currency and a foreign currency rates identifiers and sends a HTTP request to retrieve the exchange rates between the currencies from fixer.io.
It can retrieve the exchange rates also for a specific date. | |
 |
|
Innovation award
 Nominee: 1x |
|
Details
Karensi

PHP Library for fixer.io foreign exchange rates and currency conversion.
Installation
> composer.phar require aqlx86/karensi
> composer.phar install
Usage
Fetch all
$karensi = new Karensi\Karensi('USD');
$rates = $karensi->fetch_rate();
Fetch specific currencies
$karensi = new Karensi\Karensi('USD', ['CAD', 'PHP']);
$rates = $karensi->fetch_rate();
Fetch historical rates
$karensi = new Karensi\Karensi('USD', ['CAD', 'PHP'], '2015-12-28');
$rates = $karensi->fetch_rate();
Save fetched rates in json format
$karensi->save('./rates/');
Test
./bin/phpspec run
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.