Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomwright/currencyphpfixerioratefetcher
A fixer.io rate fetcher for CurrencyPHP.
https://github.com/tomwright/currencyphpfixerioratefetcher
Last synced: 19 days ago
JSON representation
A fixer.io rate fetcher for CurrencyPHP.
- Host: GitHub
- URL: https://github.com/tomwright/currencyphpfixerioratefetcher
- Owner: TomWright
- Created: 2017-10-23T14:40:48.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-23T14:59:18.000Z (about 7 years ago)
- Last Synced: 2024-10-05T02:42:11.183Z (about 1 month ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CurrencyPHP FixerIO Rate Fetcher
[![Build Status](https://travis-ci.org/TomWright/CurrencyPHPFixerIORateFetcher.svg?branch=master)](https://travis-ci.org/TomWright/CurrencyPHPFixerIORateFetcher)
[![Latest Stable Version](https://poser.pugx.org/tomwright/currency-php-fixerio-rate-fetcher/v/stable)](https://packagist.org/packages/tomwright/currency-php-fixerio-rate-fetcher)
[![Total Downloads](https://poser.pugx.org/tomwright/currency-php-fixerio-rate-fetcher/downloads)](https://packagist.org/packages/tomwright/currency-php-fixerio-rate-fetcher)
[![Monthly Downloads](https://poser.pugx.org/tomwright/currency-php-fixerio-rate-fetcher/d/monthly)](https://packagist.org/packages/tomwright/currency-php-fixerio-rate-fetcher)
[![Daily Downloads](https://poser.pugx.org/tomwright/currency-php-fixerio-rate-fetcher/d/daily)](https://packagist.org/packages/tomwright/currency-php-fixerio-rate-fetcher)
[![License](https://poser.pugx.org/tomwright/currency-php-fixerio-rate-fetcher/license.svg)](https://packagist.org/packages/tomwright/currency-php-fixerio-rate-fetcher)## Installation
Install [CurrencyPHP](https://github.com/TomWright/CurrencyPHP).
```
composer require tomwright/currency-php
composer require tomwright/currency-php-fixerio-rate-fetcher
```## Usage
FixerIORateFetcher is just a RateFetcher for [CurrencyPHP](https://github.com/TomWright/CurrencyPHP).
```php
$rateFetcher = new FixerIORateFetcher();
$gbp = new Currency('GBP', $rateFetcher);
$usd = new Currency('USD', $rateFetcher);$priceInGBP = 100;
$priceInUSD = $gbp->convertTo($usd, $priceInGBP);
echo $priceInUSD; // 126
```