Skip to content

Commit caf2f9c

Browse files
author
Artur Smolarek
committed
xChangeApi.com support
1 parent f06e70e commit caf2f9c

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Here is the list of the currently implemented services:
5050
| [Open Exchange Rates](https://openexchangerates.org) | USD (free), * (paid) | * | Yes |
5151
| [Xignite](https://www.xignite.com) | * | * | Yes |
5252
| [CurrencyConverterApi](https://www.currencyconverterapi.com) | * | * | Yes (free but limited or paid) |
53+
| [xChangeApi.com](https://xchangeapi.com) | * | * | Yes |
5354
| Array | * | * | Yes |
5455

5556
## Credits

Resources/doc/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ florianv_swap:
6767
currency_converter: # Currency Converter API
6868
access_key: secret
6969
enterprise: true
70+
xchangeapi: # xChangeApi.com
71+
api-key: secret
7072
array:
7173
rates:
7274
'EUR/GBP': 1.5

Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ public function provideValidProvidersConfigs()
125125
[['xignite' => ['token' => 'any']]],
126126
[['xignite' => ['token' => 'any'], 'currency_layer' => ['access_key' => 'any']]],
127127
[['currency_converter' => ['access_key' => 'any']]],
128+
[['xchangeapi' => ['api-key' => 'any']]],
128129
[[
129130
'array' => [
130131
'rates' => [
@@ -172,6 +173,7 @@ public function provideInvalidProvidersConfigs()
172173
[['open_exchange_rates' => ['app_id' => true]]],
173174
[['xignite' => ['token' => []]]],
174175
[['currency_converter' => ['access_key' => null]]],
176+
[['xchangeapi' => ['api_key' => null]]],
175177
[['array' => null]],
176178
[['array' => []]],
177179
[['array' => ['EUR/GBP' => 1.5]]],

Tests/DependencyInjection/FlorianvSwapExtensionTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ public function testForgeProvider()
7575
$this->buildContainer(['forge' => ['api_key' => 'test']]);
7676
}
7777

78+
public function testXchangeApiProvider()
79+
{
80+
$this->buildContainer(['xchangeapi' => ['api-key' => 'test']]);
81+
}
82+
7883
public function testProviderPriorities()
7984
{
8085
$this->buildContainer([

0 commit comments

Comments
 (0)