Skip to content

Commit 62740ee

Browse files
authored
Merge pull request #117 from florianv/update
Last 3.x updates
2 parents 99d40a0 + 22f2f41 commit 62740ee

8 files changed

Lines changed: 35 additions & 14 deletions

File tree

.travis.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
11
language: php
22

3-
php:
4-
- 5.5
5-
- 5.6
6-
- 7.0
7-
- 7.1
8-
- 7.2
9-
103
sudo: false
114

5+
env:
6+
global:
7+
- PREFER="--prefer-dist"
8+
9+
matrix:
10+
fast_finish: true
11+
include:
12+
- php: 5.5
13+
env: PREFER="--prefer-lowest"
14+
- php: 5.5
15+
- php: 5.6
16+
- php: 7.0
17+
- php: 7.1
18+
- php: 7.2
19+
1220
cache:
1321
directories:
1422
- $HOME/.composer/cache
1523

1624
before_script:
17-
- travis_retry composer self-update
18-
- travis_retry composer update --no-interaction --prefer-dist
25+
- composer update --no-interaction $PREFER
1926

2027
script:
2128
- composer test

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
# CHANGELOG for 3.0
1+
# CHANGELOG for 3.x
22

3-
This log contains the important changes for the 3.0 version.
3+
This log contains the important changes for the 3.x versions.
4+
5+
- Added CurrencyConverterApi service
6+
- Fixed Fixer service which now requires an access_key
7+
- Added Forge service
8+
- Added CurrencyDataFeed service
9+
- Supported historical rates in National Bank Of Romania
10+
- Support crypto currencies via Cryptonator
11+
- New Russian Central Bank service
412

513
- e5234ea Added a .gitattributes file
614
- 24ba8f3 Use Httplug instead of egeloen

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014 - 2018 Florian Voutzinos
3+
Copyright (c) 2014 - 2019 Florian Voutzinos
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Here is the list of the currently implemented services:
8181
| [1Forge](https://1forge.com) | * (free but limited or paid) | * (free but limited or paid) | No |
8282
| [European Central Bank](https://www.ecb.europa.eu/home/html/index.en.html) | EUR | * | Yes |
8383
| [National Bank of Romania](http://www.bnr.ro) | RON | * | Yes |
84-
| [Central Bank of the Republic of Turkey](http://www.tcmb.gov.tr) | * | TRY | No |
84+
| [Central Bank of the Republic of Turkey](http://www.tcmb.gov.tr) | * | TRY | Yes |
8585
| [Central Bank of the Czech Republic](https://www.cnb.cz) | * | CZK | Yes |
8686
| [Central Bank of Russia](https://cbr.ru) | * | RUB | Yes |
8787
| [WebserviceX](http://www.webservicex.net) | * | * | No |
@@ -90,6 +90,7 @@ Here is the list of the currently implemented services:
9090
| [CurrencyDataFeed](https://currencydatafeed.com) | * (free but limited or paid) | * (free but limited or paid) | No |
9191
| [Open Exchange Rates](https://openexchangerates.org) | USD (free), * (paid) | * | Yes |
9292
| [Xignite](https://www.xignite.com) | * | * | Yes |
93+
| [CurrencyConverterApi](https://www.currencyconverterapi.com) | * | * | Yes (free but limited or paid) |
9394
| Array | * | * | Yes |
9495

9596
## Integrations

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
"name": "Florian Voutzinos",
99
"email": "florian@voutzinos.com",
10-
"homepage": "http://florian.voutzinos.com"
10+
"homepage": "https://voutzinos.com"
1111
}
1212
],
1313
"autoload": {

doc/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ $swap = (new Builder())
245245
->add('google')
246246
->add('cryptonator')
247247
->add('currency_data_feed', ['api_key' => 'secret'])
248+
->add('currency_converter', ['access_key' => 'secret', 'enterprise' => false])
248249
->add('open_exchange_rates', ['app_id' => 'secret', 'enterprise' => false])
249250
->add('xignite', ['token' => 'token'])
250251
->add('array', [

src/Service/Registry.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Exchanger\Service\CentralBankOfCzechRepublic;
1515
use Exchanger\Service\CentralBankOfRepublicTurkey;
1616
use Exchanger\Service\Cryptonator;
17+
use Exchanger\Service\CurrencyConverterApi;
1718
use Exchanger\Service\CurrencyDataFeed;
1819
use Exchanger\Service\CurrencyLayer;
1920
use Exchanger\Service\EuropeanCentralBank;
@@ -96,6 +97,7 @@ private function registerServices()
9697
'array' => PhpArray::class,
9798
'central_bank_of_czech_republic' => CentralBankOfCzechRepublic::class,
9899
'central_bank_of_republic_turkey' => CentralBankOfRepublicTurkey::class,
100+
'currency_converter' => CurrencyConverterApi::class,
99101
'currency_layer' => CurrencyLayer::class,
100102
'currency_data_feed' => CurrencyDataFeed::class,
101103
'cryptonator' => Cryptonator::class,

tests/Service/RegistryTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Exchanger\Service\CentralBankOfCzechRepublic;
1515
use Exchanger\Service\CentralBankOfRepublicTurkey;
1616
use Exchanger\Service\Cryptonator;
17+
use Exchanger\Service\CurrencyConverterApi;
1718
use Exchanger\Service\CurrencyDataFeed;
1819
use Exchanger\Service\CurrencyLayer;
1920
use Exchanger\Service\EuropeanCentralBank;
@@ -49,6 +50,7 @@ public function serviceProviders()
4950
['central_bank_of_czech_republic', CentralBankOfCzechRepublic::class],
5051
['central_bank_of_republic_turkey', CentralBankOfRepublicTurkey::class],
5152
['cryptonator', Cryptonator::class],
53+
['currency_converter', CurrencyConverterApi::class],
5254
['currency_data_feed', CurrencyDataFeed::class],
5355
['currency_layer', CurrencyLayer::class],
5456
['european_central_bank', EuropeanCentralBank::class],

0 commit comments

Comments
 (0)