currencystack / currencystack-php
Real-time and historical exchange rates for 168 world currencies provided in JSON format and works for any programming environment.
1.0.0
2018-12-10 21:40 UTC
Requires
- php: >=5.5
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- phpunit/phpunit: ^4
This package is not auto-updated.
Last update: 2025-03-06 18:09:50 UTC
README
php client library for currencystack.io – A reliable API for foreign exchange rates and currency conversion.
Installation
composer require currencystack/currencystack-php
usage
Get ip info:
<?php require_once __DIR__ . '/vendor/autoload.php'; use CurrencyStack\Client; $CurrencyStackClient = new Client('API Key Here'); try { var_dump($CurrencyStackClient->CurrencyConvertApi->GetCurrencyConvertion('EUR', ['USD', 'EGP', 'AED'])); } catch (Exception $e) { echo $e->getMessage(); }
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.