PHP code example of rapidwebltd / simple-currency-rates

1. Go to this page and download the library: Download rapidwebltd/simple-currency-rates library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rapidwebltd / simple-currency-rates example snippets


$rates = (new SimpleCurrencyRates)->get('GBP');

Array
(
    [AUD] => 1.7307
    [BGN] => 2.201
    [BRL] => 4.423
    [CAD] => 1.7099
    [CHF] => 1.3274
    [CNY] => 8.8656
    [CZK] => 28.715
    [DKK] => 8.3831
    [EUR] => 1.1254
    [GBP] => 1
    [HKD] => 10.767
    [HRK] => 8.3542
    [HUF] => 347.46
    [IDR] => 18357
    [ILS] => 4.7002
    [INR] => 88.15
    [JPY] => 152.37
    [KRW] => 1465.7
    [MXN] => 25.837
    [MYR] => 5.457
    [NOK] => 10.838
    [NZD] => 1.8915
    [PHP] => 69.704
    [PLN] => 4.6942
    [RON] => 5.231
    [RUB] => 77.678
    [SEK] => 11.054
    [SGD] => 1.8214
    [THB] => 44.015
    [TRY] => 5.2259
    [USD] => 1.3763
    [XBT] => 0.00013526
    [ZAR] => 16.877
)