Skip to content

Commit

Permalink
Merge pull request #134 from xchangeapi/feature/xchangeapicom-support
Browse files Browse the repository at this point in the history
xChangeApi.com support
  • Loading branch information
florianv authored Aug 19, 2020
2 parents 7acf348 + 409c80f commit 2c57323
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ Here is the list of the currently implemented services:
| [Open Exchange Rates](https://openexchangerates.org) | USD (free), * (paid) | * | Yes |
| [Xignite](https://www.xignite.com) | * | * | Yes |
| [Currency Converter API](https://www.currencyconverterapi.com) | * | * | Yes (free but limited or paid) |
| [xChangeApi.com](https://xchangeapi.com) | * | * | Yes |
| Array | * | * | Yes |

Additionally, you can add your own services as long as they implement the `ExchangeRateService` interface.
Expand Down
1 change: 1 addition & 0 deletions doc/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ $swap = (new Builder())
->add('currency_converter', ['access_key' => 'secret', 'enterprise' => false])
->add('open_exchange_rates', ['app_id' => 'secret', 'enterprise' => false])
->add('xignite', ['token' => 'token'])
->add('xchangeapi', ['api-key' => 'secret'])
->add('array', [
[
'EUR/USD' => 1.1,
Expand Down
2 changes: 2 additions & 0 deletions tests/Service/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
use Exchanger\Service\WebserviceX;
use Exchanger\Service\Xignite;
use Exchanger\Service\RussianCentralBank;
use Exchanger\Service\XchangeApi;
use Http\Mock\Client;
use PHPUnit\Framework\TestCase;
use Swap\Service\Factory;
Expand Down Expand Up @@ -61,6 +62,7 @@ public function servicesProvider()
['xignite', Xignite::class, ['token' => 'token']],
['russian_central_bank', RussianCentralBank::class],
['cryptonator', Cryptonator::class],
['xchangeapi', XchangeApi::class, ['api-key' => 'api-key']]
];
}

Expand Down

0 comments on commit 2c57323

Please sign in to comment.