2017 © Pedro Peláez
 

library simple-currency-rates

This package provides simple access to current currency exchange rates.

image

rapidwebltd/simple-currency-rates

This package provides simple access to current currency exchange rates.

  • Tuesday, January 23, 2018
  • by DivineOmega
  • Repository
  • 4 Watchers
  • 2 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 5 Versions
  • 5 % Grown

The README.md

Simple Currency Rates

This package provides simple access to current currency exchange rates., (*1)

Installation

Simple Currency Rates can be easily installed using Composer. Just run the following command from the root of your project., (*2)

composer require rapidwebltd/simple-currency-rates

If you have never used the Composer dependency manager before, head to the Composer website for more information on how to get started., (*3)

Usage

To get the current exchange rates, just create a new SimpleCurrencyRates object and call its get method with the base currency of your choice (e.g. GBP, USD, EUR). The following code snippet shows how to do this., (*4)

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

Exchange rates are returned as an array in the format ['CURRENCYCODE' => RATE, ...]. An example rates array is shown below., (*5)

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
)

The Versions

23/01 2018

dev-master

9999999-dev

This package provides simple access to current currency exchange rates.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

23/01 2018

v1.1.2

1.1.2.0

This package provides simple access to current currency exchange rates.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

23/01 2018

v1.1.1

1.1.1.0

This package provides simple access to current currency exchange rates.

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

by Jordan Hall

11/01 2018

v1.1.0

1.1.0.0

Provides simple access to current currency rates

  Sources   Download

LGPL3

The Requires

 

The Development Requires

by Jordan Hall

05/01 2018

v1.0.0

1.0.0.0

Provides simple access to current currency rates

  Sources   Download

LGPL3

The Requires

 

The Development Requires

by Jordan Hall