2017 © Pedro Peláez
 

library exchange-rates

Library that parses exchange rates of different countries using different providers

image

alexanderc/exchange-rates

Library that parses exchange rates of different countries using different providers

  • Friday, April 10, 2015
  • by AlexanderC
  • Repository
  • 2 Watchers
  • 1 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

ExchangeRates Library

Library that parses exchange rates of different countries using different providers, (*1)

Reuirements

See composer.json, (*2)

Installation

  • Install Composer
  • Add in your composer.json under require section: "alexanderc/exchange-rates": "dev-master"
  • Run composer.phar install or composer.phar update

Available Providers

Basic Usage

require 'vendor/autoload.php';

use ExchangeRates\Client;

$client = Client::create('curs_md');

foreach($client->parse(new \DateTime()) as $rate) {
    echo sprintf(
        "%s (%s), %s: %s=%.2f%s\n",
        $rate->getCountry(),
        $rate->getBank(),
        $rate->getHumanizedType(),
        $rate->getMainCurrency(),
        $rate->getExchangeRate(),
        $rate->getLocalCurrency()
    );
}

Check https://github.com/AlexanderC/ExchangeRates/blob/master/tests/basic.php for more examples, (*3)

TODO

  • Unit tests
  • Add more providers

License

  • Apache v2.0

Sponsors

The Versions

10/04 2015

dev-master

9999999-dev

Library that parses exchange rates of different countries using different providers

  Sources   Download

Apache V2

The Requires

 

by Avatar AlexanderC

10/04 2015

v1.1.1

1.1.1.0

Library that parses exchange rates of different countries using different providers

  Sources   Download

Apache V2

The Requires

 

by Avatar AlexanderC

25/02 2015

v1.1.0

1.1.0.0

Library that parses exchange rates of different countries using different providers

  Sources   Download

Apache V2

The Requires

 

by Avatar AlexanderC

24/02 2015

v1.0.1beta

1.0.1.0-beta

Library that parses exchange rates of different countries using different providers

  Sources   Download

Apache V2

The Requires

 

by Avatar AlexanderC

24/02 2015

v1.0.0beta

1.0.0.0-beta

Library that parses exchange rates of different countries using different providers

  Sources   Download

Apache V2

The Requires

 

by Avatar AlexanderC