Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 69 | All time: 10,304 This week: 455 |
Version | License | PHP version | Categories | |||
karensi 1.0 | MIT/X Consortium ... | 5 | PHP 5, Web services, Finances |
Description | Author | |
This class can fetch currency exchange rates from fixer.io. |
PHP Library for fixer.io foreign exchange rates and currency conversion.
> composer.phar require aqlx86/karensi
> composer.phar install
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/');
./bin/phpspec run
Files (7) |
File | Role | Description | ||
---|---|---|---|---|
spec (1 directory) | ||||
src (1 directory) | ||||
.travis.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
phpspec.yml | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.