buckhill / exchange
A simple package that helps you converts your money into any currency
1.0.0
2023-03-25 01:41 UTC
README
Buckhill Exchanger is a package that allow you to exchange any currency in the world, it makes use of the European Central Bank daily reference.
Installation
PHP 8.2+ and Composer are required.
To get the latest version of buckhill/exchange, simply require it
composer require buckhill/exchange
Or add the following line to the require block of your composer.json
file.
"buckhill/exchange": "1.0.*"
You'll then need to run composer install
or composer update
to download it and have the autoloader updated.
General Usage
To exchange any currency, all you need to do his hit this endpoint '/api/endpoint' with the payloads
[
amount => 100
currenct => 'USED'
]
We support several currencies, see list of currency below.
[
"USD"
,
"JPY"
,
"BGN"
,
"CZK"
,
"DKK"
,
"GBP"
,
"HUF"
,
"PLN"
,
"RON"
,
"SEK"
,
"CHF"
,
"ISK"
,
"NOK"
,
"TRY"
,
"AUD"
,
"BRL"
,
"CAD"
,
"CNY"
,
"HKD"
,
"IDR"
,
"ILS"
,
"INR"
,
"KRW"
,
"MXN"
,
"MYR"
,
"NZD"
,
"PHP"
,
"SGD"
,
"THB"
,
"ZAR"
]