Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2016-06-07 (4 months ago) ![RSS 2.0 feed](/graphics/phpclasses/rss2.png) | | Not enough user ratings | | Total: 52 | | All time: 8,588 This week: 931![Up](/graphics/phpclasses/up.png) |
|
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. | |
![Picture of Arnel Labarda Picture of Arnel Labarda](/picture/user/334165.jpg) |
|
Innovation award
![Innovation award](/graphics/phpclasses/innovation-award-logo.png) Nominee: 1x |
|
Details
Karensi
![Build Status](https://travis-ci.org/aqlx86/karensi.svg?branch=master)
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.