Skip to content

Commit 71067ed

Browse files
authored
Merge pull request #91 from dannyweeks/add-cryptonator-service
Add Crypotonator service support
2 parents 8a1bcaa + ce522d0 commit 71067ed

File tree

5 files changed

+8
-0
lines changed

5 files changed

+8
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Here is the list of the currently implemented services.
6262
| [Central Bank of the Czech Republic](http://www.cnb.cz) | * | CZK | No |
6363
| [Russian Central Bank](http://http://www.cbr.ru) | * | RUB | Yes |
6464
| [currencylayer](https://currencylayer.com) | USD (free), * (paid) | * | Yes |
65+
| [Cryptonator](https://www.cryptonator.com) | * Crypto (Limited standard currencies) | * Crypto (Limited standard currencies) | No |
6566
| Array | * | * | Yes |
6667

6768
## Integrations

doc/readme.md

+1
Original file line numberDiff line numberDiff line change
@@ -251,5 +251,6 @@ $swap = (new Builder())
251251
->add('xignite', ['token' => 'token'])
252252
->add('yahoo')
253253
->add('russian_central_bank')
254+
->add('cryptonator')
254255
->build();
255256
```

src/Service/Registry.php

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use Exchanger\Service\CentralBankOfCzechRepublic;
1515
use Exchanger\Service\CentralBankOfRepublicTurkey;
16+
use Exchanger\Service\Cryptonator;
1617
use Exchanger\Service\CurrencyLayer;
1718
use Exchanger\Service\EuropeanCentralBank;
1819
use Exchanger\Service\Fixer;
@@ -103,6 +104,7 @@ private function registerServices()
103104
'xignite' => Xignite::class,
104105
'yahoo' => Yahoo::class,
105106
'russian_central_bank' => RussianCentralBank::class,
107+
'cryptonator' => Cryptonator::class,
106108
];
107109

108110
foreach ($services as $name => $class) {

tests/Service/FactoryTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Exchanger\ExchangeRate;
1515
use Exchanger\Service\CentralBankOfCzechRepublic;
1616
use Exchanger\Service\CentralBankOfRepublicTurkey;
17+
use Exchanger\Service\Cryptonator;
1718
use Exchanger\Service\CurrencyLayer;
1819
use Exchanger\Service\EuropeanCentralBank;
1920
use Exchanger\Service\Fixer;
@@ -56,6 +57,7 @@ public function servicesProvider()
5657
['xignite', Xignite::class, ['token' => 'token']],
5758
['yahoo', Yahoo::class],
5859
['russian_central_bank', RussianCentralBank::class],
60+
['cryptonator', Cryptonator::class],
5961
];
6062
}
6163

tests/Service/RegistryTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use Exchanger\Service\CentralBankOfCzechRepublic;
1515
use Exchanger\Service\CentralBankOfRepublicTurkey;
16+
use Exchanger\Service\Cryptonator;
1617
use Exchanger\Service\CurrencyLayer;
1718
use Exchanger\Service\EuropeanCentralBank;
1819
use Exchanger\Service\Fixer;
@@ -55,6 +56,7 @@ public function serviceProviders()
5556
['xignite', Xignite::class],
5657
['yahoo', Yahoo::class],
5758
['russian_central_bank', RussianCentralBank::class],
59+
['cryptonator', Cryptonator::class],
5860
];
5961
}
6062

0 commit comments

Comments
 (0)