2017 © Pedro Peláez
 

library bryn-european-central-bank-calculator

An exchange rate calculator for the `PHP` library [Bryn](ben-gibson/bryn) that pulls data from the European Central Bank.

image

ben-gibson/bryn-european-central-bank-calculator

An exchange rate calculator for the `PHP` library [Bryn](ben-gibson/bryn) that pulls data from the European Central Bank.

  • Saturday, April 8, 2017
  • by ben-gibson
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Bryn - European Central Bank Calculator

Latest Version on Packagist ![Software License][ico-license] Build Status ![Total Downloads][ico-downloads], (*1)

An exchange rate calculator for Bryn that pulls data from the European Central Bank. HTTPlug is used to support multiple HTTP clients including Guzzle, Buzz, and Curl., (*2)

Install

Use composer to install this library and your preferred HTTP client., (*3)

``` bash $ composer require php-http/guzzle6-adapter $ composer require ben-gibson/bryn-european-central-bank-calculator, (*4)


## Usage ``` php <?php require 'vendor/autoload.php'; $calculator = \Gibbo\Bryn\Calculator\ECB\ECBCalculator::default(); $exchangeRate = $calculator->getRate( new \Gibbo\Bryn\Exchange( \Gibbo\Bryn\Currency::GBP(), \Gibbo\Bryn\Currency::USD() ) ); echo $exchangeRate; echo $exchangeRate->convert(550); echo $exchangeRate->flip()->convert(550); /** * OUTPUTS: * * 1 GBP(£) = 1.25 USD($) * 686.2295 * 440.814 */

Change log

Please see CHANGELOG for more information what has changed recently., (*5)

Testing

bash $ composer test, (*6)

Contributing

Please see CONTRIBUTING for details., (*7)

Credits

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions

08/04 2017

dev-master

9999999-dev https://github.com/ben-gibson/bryn-european-central-bank-calculator

An exchange rate calculator for the `PHP` library [Bryn](ben-gibson/bryn) that pulls data from the European Central Bank.

  Sources   Download

MIT

The Requires

 

The Development Requires

currency conversion exchange rate calculator european central bank

08/04 2017

v0.0.2

0.0.2.0 https://github.com/ben-gibson/bryn-european-central-bank-calculator

An exchange rate calculator for the `PHP` library [Bryn](ben-gibson/bryn) that pulls data from the European Central Bank.

  Sources   Download

MIT

The Requires

 

The Development Requires

currency conversion exchange rate calculator european central bank

08/04 2017

v0.0.1

0.0.1.0 https://github.com/ben-gibson/bryn-european-central-bank-calculator

An exchange rate calculator for the `PHP` library [Bryn](ben-gibson/bryn) that pulls data from the European Central Bank.

  Sources   Download

MIT

The Requires

 

The Development Requires

currency conversion exchange rate calculator european central bank