Skip to content

Commit

Permalink
Merge pull request #117 from florianv/update
Browse files Browse the repository at this point in the history
Last 3.x updates
  • Loading branch information
florianv authored Jan 4, 2019
2 parents 99d40a0 + 22f2f41 commit 62740ee
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 14 deletions.
25 changes: 16 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
language: php

php:
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2

sudo: false

env:
global:
- PREFER="--prefer-dist"

matrix:
fast_finish: true
include:
- php: 5.5
env: PREFER="--prefer-lowest"
- php: 5.5
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2

cache:
directories:
- $HOME/.composer/cache

before_script:
- travis_retry composer self-update
- travis_retry composer update --no-interaction --prefer-dist
- composer update --no-interaction $PREFER

script:
- composer test
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# CHANGELOG for 3.0
# CHANGELOG for 3.x

This log contains the important changes for the 3.0 version.
This log contains the important changes for the 3.x versions.

- Added CurrencyConverterApi service
- Fixed Fixer service which now requires an access_key
- Added Forge service
- Added CurrencyDataFeed service
- Supported historical rates in National Bank Of Romania
- Support crypto currencies via Cryptonator
- New Russian Central Bank service

- e5234ea Added a .gitattributes file
- 24ba8f3 Use Httplug instead of egeloen
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014 - 2018 Florian Voutzinos
Copyright (c) 2014 - 2019 Florian Voutzinos

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Here is the list of the currently implemented services:
| [1Forge](https://1forge.com) | * (free but limited or paid) | * (free but limited or paid) | No |
| [European Central Bank](https://www.ecb.europa.eu/home/html/index.en.html) | EUR | * | Yes |
| [National Bank of Romania](http://www.bnr.ro) | RON | * | Yes |
| [Central Bank of the Republic of Turkey](http://www.tcmb.gov.tr) | * | TRY | No |
| [Central Bank of the Republic of Turkey](http://www.tcmb.gov.tr) | * | TRY | Yes |
| [Central Bank of the Czech Republic](https://www.cnb.cz) | * | CZK | Yes |
| [Central Bank of Russia](https://cbr.ru) | * | RUB | Yes |
| [WebserviceX](http://www.webservicex.net) | * | * | No |
Expand All @@ -90,6 +90,7 @@ Here is the list of the currently implemented services:
| [CurrencyDataFeed](https://currencydatafeed.com) | * (free but limited or paid) | * (free but limited or paid) | No |
| [Open Exchange Rates](https://openexchangerates.org) | USD (free), * (paid) | * | Yes |
| [Xignite](https://www.xignite.com) | * | * | Yes |
| [CurrencyConverterApi](https://www.currencyconverterapi.com) | * | * | Yes (free but limited or paid) |
| Array | * | * | Yes |

## Integrations
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{
"name": "Florian Voutzinos",
"email": "[email protected]",
"homepage": "http://florian.voutzinos.com"
"homepage": "https://voutzinos.com"
}
],
"autoload": {
Expand Down
1 change: 1 addition & 0 deletions doc/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ $swap = (new Builder())
->add('google')
->add('cryptonator')
->add('currency_data_feed', ['api_key' => 'secret'])
->add('currency_converter', ['access_key' => 'secret', 'enterprise' => false])
->add('open_exchange_rates', ['app_id' => 'secret', 'enterprise' => false])
->add('xignite', ['token' => 'token'])
->add('array', [
Expand Down
2 changes: 2 additions & 0 deletions src/Service/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Exchanger\Service\CentralBankOfCzechRepublic;
use Exchanger\Service\CentralBankOfRepublicTurkey;
use Exchanger\Service\Cryptonator;
use Exchanger\Service\CurrencyConverterApi;
use Exchanger\Service\CurrencyDataFeed;
use Exchanger\Service\CurrencyLayer;
use Exchanger\Service\EuropeanCentralBank;
Expand Down Expand Up @@ -96,6 +97,7 @@ private function registerServices()
'array' => PhpArray::class,
'central_bank_of_czech_republic' => CentralBankOfCzechRepublic::class,
'central_bank_of_republic_turkey' => CentralBankOfRepublicTurkey::class,
'currency_converter' => CurrencyConverterApi::class,
'currency_layer' => CurrencyLayer::class,
'currency_data_feed' => CurrencyDataFeed::class,
'cryptonator' => Cryptonator::class,
Expand Down
2 changes: 2 additions & 0 deletions tests/Service/RegistryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Exchanger\Service\CentralBankOfCzechRepublic;
use Exchanger\Service\CentralBankOfRepublicTurkey;
use Exchanger\Service\Cryptonator;
use Exchanger\Service\CurrencyConverterApi;
use Exchanger\Service\CurrencyDataFeed;
use Exchanger\Service\CurrencyLayer;
use Exchanger\Service\EuropeanCentralBank;
Expand Down Expand Up @@ -49,6 +50,7 @@ public function serviceProviders()
['central_bank_of_czech_republic', CentralBankOfCzechRepublic::class],
['central_bank_of_republic_turkey', CentralBankOfRepublicTurkey::class],
['cryptonator', Cryptonator::class],
['currency_converter', CurrencyConverterApi::class],
['currency_data_feed', CurrencyDataFeed::class],
['currency_layer', CurrencyLayer::class],
['european_central_bank', EuropeanCentralBank::class],
Expand Down

0 comments on commit 62740ee

Please sign in to comment.