Skip to content

Commit 4655873

Browse files
committed
fix
1 parent 875ec44 commit 4655873

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
[![Version](http://img.shields.io/packagist/v/florianv/exchanger.svg?style=flat-square)](https://packagist.org/packages/florianv/exchanger)
77

88
Exchanger is a PHP framework to work with currency exchange rates from various services such as
9-
**[Fixer](https://fixer.io)**, **[Currency Data](https://apilayer.com/marketplace/currency_data-api)**,
10-
**[Exchange Rates Data](https://apilayer.com/marketplace/exchangerates_data-api)** or **[Abstract](https://www.abstractapi.com)**.
9+
**[Fixer](https://fixer.io)**, **[Currency Data](https://currencylayer.com)**,
10+
**[Exchange Rates Data](https://exchangeratesapi.io)** or **[Abstract](https://www.abstractapi.com)**.
1111
Looking for a simple library based on Exchanger ? Check out [Swap](https://github.com/florianv/swap) !
1212

1313
## Sponsors
@@ -19,11 +19,11 @@ Looking for a simple library based on Exchanger ? Check out [Swap](https://githu
1919
</tr>
2020
<tr>
2121
<td><img src="https://assets.apilayer.com/apis/currency_data.png" width="50px"/></td>
22-
<td><a href="https://apilayer.com/marketplace/currency_data-api">Currency Data</a> provides reliable exchange rates and currency conversions for your business up to 168 world currencies.</td>
22+
<td><a href="https://currencylayer.com">Currency Data</a> provides reliable exchange rates and currency conversions for your business up to 168 world currencies.</td>
2323
</tr>
2424
<tr>
2525
<td><img src="https://assets.apilayer.com/apis/exchangerates_data.png" width="50px"/></td>
26-
<td><a href="https://apilayer.com/marketplace/exchangerates_data-api">Exchange Rates Data</a> provides reliable exchange rates and currency conversions for your business with over 15 data sources.</td>
26+
<td><a href="https://exchangeratesapi.io">Exchange Rates Data</a> provides reliable exchange rates and currency conversions for your business with over 15 data sources.</td>
2727
</tr>
2828
<tr>
2929
<td><img src="https://global-uploads.webflow.com/5ebbd0a566a3996636e55959/5ec2ba29feeeb05d69160e7b_webclip.png" width="50px"/></td>
@@ -42,8 +42,8 @@ Here is the complete list of the currently implemented services:
4242
| Service | Base Currency | Quote Currency | Historical |
4343
|---------------------------------------------------------------------------|----------------------|----------------|----------------|
4444
| [Fixer](https://fixer.io) | EUR (free, no SSL), * (paid) | * | Yes |
45-
| [Currency Data](https://apilayer.com/marketplace/currency_data-api) | USD (free), * (paid) | * | Yes |
46-
| [Exchange Rates Data](https://apilayer.com/marketplace/exchangerates_data-api) | USD (free), * (paid) | * | Yes |
45+
| [Currency Data](https://currencylayer.com) | USD (free), * (paid) | * | Yes |
46+
| [Exchange Rates Data](https://exchangeratesapi.io) | USD (free), * (paid) | * | Yes |
4747
| [Abstract](https://www.abstractapi.com) | * | * | Yes |
4848
| [coinlayer](https://coinlayer.com) | * Crypto (Limited standard currencies) | * Crypto (Limited standard currencies) | Yes |
4949
| [Fixer](https://fixer.io) | EUR (free, no SSL), * (paid) | * | Yes |

doc/readme.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
</tr>
1010
<tr>
1111
<td><img src="https://assets.apilayer.com/apis/currency_data.png" width="50px"/></td>
12-
<td><a href="https://apilayer.com/marketplace/currency_data-api">Currency Data</a> provides reliable exchange rates and currency conversions for your business up to 168 world currencies.</td>
12+
<td><a href="https://currencylayer.com">Currency Data</a> provides reliable exchange rates and currency conversions for your business up to 168 world currencies.</td>
1313
</tr>
1414
<tr>
1515
<td><img src="https://assets.apilayer.com/apis/exchangerates_data.png" width="50px"/></td>
16-
<td><a href="https://apilayer.com/marketplace/exchangerates_data-api">Exchange Rates Data</a> provides reliable exchange rates and currency conversions for your business with over 15 data sources.</td>
16+
<td><a href="https://exchangeratesapi.io">Exchange Rates Data</a> provides reliable exchange rates and currency conversions for your business with over 15 data sources.</td>
1717
</tr>
1818
<tr>
1919
<td><img src="https://global-uploads.webflow.com/5ebbd0a566a3996636e55959/5ec2ba29feeeb05d69160e7b_webclip.png" width="50px"/></td>
@@ -78,10 +78,10 @@ $client = new CurlClient(null, null, $options);
7878
$service = new Fixer($client, null, ['api_key' => 'Get your key here: https://fixer.io']);
7979

8080
// Or use the CurrencyData service
81-
$service = new CurrencyData($client, null, ['api_key' => 'Get your key here: https://apilayer.com/marketplace/currency_data-api']);
81+
$service = new CurrencyData($client, null, ['api_key' => 'Get your key here: https://currencylayer.com']);
8282

8383
// Or use the ExchangeRatesData service
84-
$service = new ExchangeRatesData($client, null, ['api_key' => 'Get your key here: https://apilayer.com/marketplace/exchangerates_data-api']);
84+
$service = new ExchangeRatesData($client, null, ['api_key' => 'Get your key here: https://exchangeratesapi.io']);
8585

8686
// Or use the AbstractApi service
8787
$service = new AbstractApi($client, null, ['api_key' => 'Get your key here: https://app.abstractapi.com/users/signup']);
@@ -150,8 +150,8 @@ use Exchanger\Service\AbstractApi;
150150

151151
$service = new Chain([
152152
new Fixer($client, null, ['api_key' => 'Get your key here: https://fixer.io']),
153-
new CurrencyData($client, null, ['api_key' => 'Get your key here: https://apilayer.com/marketplace/currency_data-api']),
154-
new ExchangeRatesData($client, null, ['api_key' => 'Get your key here: https://apilayer.com/marketplace/exchangerates_data-api']),
153+
new CurrencyData($client, null, ['api_key' => 'Get your key here: https://currencylayer.com']),
154+
new ExchangeRatesData($client, null, ['api_key' => 'Get your key here: https://exchangeratesapi.io']),
155155
new AbstractApi($client, null, ['api_key' => 'Get your key here: https://app.abstractapi.com/users/signup'])
156156
]);
157157
```
@@ -421,8 +421,8 @@ use Exchanger\Service\ApiLayer\Fixer;
421421

422422
$service = new Chain([
423423
new Fixer($client, null, ['api_key' => 'Get your key here: https://fixer.io']),
424-
new CurrencyData($client, null, ['api_key' => 'Get your key here: https://apilayer.com/marketplace/currency_data-api']),
425-
new ExchangeRatesData($client, null, ['api_key' => 'Get your key here: https://apilayer.com/marketplace/exchangerates_data-api']),
424+
new CurrencyData($client, null, ['api_key' => 'Get your key here: https://currencylayer.com']),
425+
new ExchangeRatesData($client, null, ['api_key' => 'Get your key here: https://exchangeratesapi.io']),
426426
new AbstractApi($client, null, ['api_key' => 'Get your key here: https://app.abstractapi.com/users/signup']),
427427
new CoinLayer($client, null, ['access_key' => 'access_key', 'paid' => false]),
428428
new Exchanger\Service\Fixer($client, null, ['access_key' => 'YOUR_KEY']),

src/Service/ApiLayer/CurrencyData.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/**
2929
* ApiLayer Currency Data Service.
3030
*
31-
* @see https://apilayer.com/marketplace/currency_data-api
31+
* @see https://currencylayer.com
3232
*
3333
* @author Florian Voutzinos <[email protected]>
3434
*/
@@ -48,7 +48,7 @@ final class CurrencyData extends HttpService
4848
public function processOptions(array &$options): void
4949
{
5050
if (!isset($options[self::API_KEY_OPTION])) {
51-
throw new NonBreakingInvalidArgumentException('The "api_key" option must be provided to use CurrencyData (https://apilayer.com/marketplace/currency_data-api).');
51+
throw new NonBreakingInvalidArgumentException('The "api_key" option must be provided to use CurrencyData (https://currencylayer.com).');
5252
}
5353
}
5454

src/Service/ApiLayer/ExchangeRatesData.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/**
2929
* ApiLayer Exchange Rates Data API.
3030
*
31-
* @see https://apilayer.com/marketplace/exchangerates_data-api
31+
* @see https://exchangeratesapi.io
3232
*
3333
* @author Florian Voutzinos <[email protected]>
3434
*/
@@ -48,7 +48,7 @@ final class ExchangeRatesData extends HttpService
4848
public function processOptions(array &$options): void
4949
{
5050
if (!isset($options[self::API_KEY_OPTION])) {
51-
throw new NonBreakingInvalidArgumentException('The "api_key" option must be provided to use Exchange Rates Data (https://apilayer.com/marketplace/exchangerates_data-api).');
51+
throw new NonBreakingInvalidArgumentException('The "api_key" option must be provided to use Exchange Rates Data (https://exchangeratesapi.io).');
5252
}
5353
}
5454

tests/Tests/Service/ApiLayer/CurrencyDataTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class CurrencyDataTest extends ServiceTestCase
3131
public function it_throws_an_exception_if_api_key_option_missing()
3232
{
3333
$this->expectException(NonBreakingInvalidArgumentException::class);
34-
$this->expectExceptionMessage('The "api_key" option must be provided to use CurrencyData (https://apilayer.com/marketplace/currency_data-api).');
34+
$this->expectExceptionMessage('The "api_key" option must be provided to use CurrencyData (https://currencylayer.com).');
3535
new CurrencyData($this->createMock('Http\Client\HttpClient'));
3636
}
3737

tests/Tests/Service/ApiLayer/ExchangeRatesDataTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ExchangeRatesDataTest extends ServiceTestCase
3333
public function it_throws_an_exception_if_api_key_option_missing()
3434
{
3535
$this->expectException(NonBreakingInvalidArgumentException::class);
36-
$this->expectExceptionMessage('The "api_key" option must be provided to use Exchange Rates Data (https://apilayer.com/marketplace/exchangerates_data-api).');
36+
$this->expectExceptionMessage('The "api_key" option must be provided to use Exchange Rates Data (https://exchangeratesapi.io).');
3737
new ExchangeRatesData($this->createMock('Http\Client\HttpClient'));
3838
}
3939

0 commit comments

Comments
 (0)