Skip to content

Commit

Permalink
Merge dcfe8db into 8e31a4e
Browse files Browse the repository at this point in the history
  • Loading branch information
albertodiaz committed Jan 25, 2018
2 parents 8e31a4e + dcfe8db commit 1e30966
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -62,6 +62,8 @@ Here is the list of the currently implemented services.
| [Russian Central Bank](http://http://www.cbr.ru) | * | RUB | Yes |
| [currencylayer](https://currencylayer.com) | USD (free), * (paid) | * | Yes |
| [Cryptonator](https://www.cryptonator.com) | * Crypto (Limited standard currencies) | * Crypto (Limited standard currencies) | No |
| [1Forge](https://1forge.com) | * (free but limited or paid) | * (free but limited or paid) | No |
| [CurrencyDataFeed](https://currencydatafeed.com) | * (free but limited or paid) | * (free but limited or paid) | No implemented |
| Array | * | * | Yes |

## Integrations
Expand Down
2 changes: 2 additions & 0 deletions doc/readme.md
Expand Up @@ -228,9 +228,11 @@ use Swap\Builder;
$swap = (new Builder())
->add('central_bank_of_czech_republic')
->add('central_bank_of_republic_turkey')
->add('currency_data_feed', ['api_key' => 'secret'])
->add('currency_layer', ['access_key' => 'secret', 'enterprise' => false])
->add('european_central_bank')
->add('fixer')
->add('forge', ['api_key' => 'secret'])
->add('google')
->add('national_bank_of_romania')
->add('open_exchange_rates', ['app_id' => 'secret', 'enterprise' => false])
Expand Down
4 changes: 4 additions & 0 deletions src/Service/Registry.php
Expand Up @@ -14,9 +14,11 @@
use Exchanger\Service\CentralBankOfCzechRepublic;
use Exchanger\Service\CentralBankOfRepublicTurkey;
use Exchanger\Service\Cryptonator;
use Exchanger\Service\CurrencyDataFeed;
use Exchanger\Service\CurrencyLayer;
use Exchanger\Service\EuropeanCentralBank;
use Exchanger\Service\Fixer;
use Exchanger\Service\Forge;
use Exchanger\Service\Google;
use Exchanger\Service\NationalBankOfRomania;
use Exchanger\Service\OpenExchangeRates;
Expand Down Expand Up @@ -94,8 +96,10 @@ private function registerServices()
'central_bank_of_czech_republic' => CentralBankOfCzechRepublic::class,
'central_bank_of_republic_turkey' => CentralBankOfRepublicTurkey::class,
'currency_layer' => CurrencyLayer::class,
'currency_data_feed' => CurrencyDataFeed::class,
'european_central_bank' => EuropeanCentralBank::class,
'fixer' => Fixer::class,
'forge' => Forge::class,
'google' => Google::class,
'national_bank_of_romania' => NationalBankOfRomania::class,
'open_exchange_rates' => OpenExchangeRates::class,
Expand Down
4 changes: 4 additions & 0 deletions tests/Service/FactoryTest.php
Expand Up @@ -15,9 +15,11 @@
use Exchanger\Service\CentralBankOfCzechRepublic;
use Exchanger\Service\CentralBankOfRepublicTurkey;
use Exchanger\Service\Cryptonator;
use Exchanger\Service\CurrencyDataFeed;
use Exchanger\Service\CurrencyLayer;
use Exchanger\Service\EuropeanCentralBank;
use Exchanger\Service\Fixer;
use Exchanger\Service\Forge;
use Exchanger\Service\Google;
use Exchanger\Service\NationalBankOfRomania;
use Exchanger\Service\OpenExchangeRates;
Expand Down Expand Up @@ -46,9 +48,11 @@ public function servicesProvider()
return [
['central_bank_of_czech_republic', CentralBankOfCzechRepublic::class],
['central_bank_of_republic_turkey', CentralBankOfRepublicTurkey::class],
['currency_data_feed', CurrencyDataFeed::class, ['api_key' => 'api_key']],
['currency_layer', CurrencyLayer::class, ['access_key' => 'access_key']],
['european_central_bank', EuropeanCentralBank::class],
['fixer', Fixer::class],
['forge', Forge::class, ['api_key' => 'api_key']],
['google', Google::class],
['national_bank_of_romania', NationalBankOfRomania::class],
['open_exchange_rates', OpenExchangeRates::class, ['app_id' => 'app_id']],
Expand Down
4 changes: 4 additions & 0 deletions tests/Service/RegistryTest.php
Expand Up @@ -14,9 +14,11 @@
use Exchanger\Service\CentralBankOfCzechRepublic;
use Exchanger\Service\CentralBankOfRepublicTurkey;
use Exchanger\Service\Cryptonator;
use Exchanger\Service\CurrencyDataFeed;
use Exchanger\Service\CurrencyLayer;
use Exchanger\Service\EuropeanCentralBank;
use Exchanger\Service\Fixer;
use Exchanger\Service\Forge;
use Exchanger\Service\Google;
use Exchanger\Service\NationalBankOfRomania;
use Exchanger\Service\OpenExchangeRates;
Expand Down Expand Up @@ -45,9 +47,11 @@ public function serviceProviders()
return [
['central_bank_of_czech_republic', CentralBankOfCzechRepublic::class],
['central_bank_of_republic_turkey', CentralBankOfRepublicTurkey::class],
['currency_data_feed', CurrencyDataFeed::class],
['currency_layer', CurrencyLayer::class],
['european_central_bank', EuropeanCentralBank::class],
['fixer', Fixer::class],
['forge', Forge::class],
['google', Google::class],
['national_bank_of_romania', NationalBankOfRomania::class],
['open_exchange_rates', OpenExchangeRates::class],
Expand Down

0 comments on commit 1e30966

Please sign in to comment.