Skip to content

Commit 875ec44

Browse files
committed
fix: links
1 parent 59d898a commit 875ec44

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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://apilayer.com/marketplace/fixer-api)**, **[Currency Data](https://apilayer.com/marketplace/currency_data-api)**,
9+
**[Fixer](https://fixer.io)**, **[Currency Data](https://apilayer.com/marketplace/currency_data-api)**,
1010
**[Exchange Rates Data](https://apilayer.com/marketplace/exchangerates_data-api)** or **[Abstract](https://www.abstractapi.com)**.
1111
Looking for a simple library based on Exchanger ? Check out [Swap](https://github.com/florianv/swap) !
1212

@@ -15,7 +15,7 @@ Looking for a simple library based on Exchanger ? Check out [Swap](https://githu
1515
<table>
1616
<tr>
1717
<td><img src="https://assets.apilayer.com/apis/fixer.png" width="50px"/></td>
18-
<td><a href="https://apilayer.com/marketplace/fixer-api">Fixer</a> is a simple and lightweight API for foreign exchange rates that supports up to 170 world currencies.</td>
18+
<td><a href="https://fixer.io">Fixer</a> is a simple and lightweight API for foreign exchange rates that supports up to 170 world currencies.</td>
1919
</tr>
2020
<tr>
2121
<td><img src="https://assets.apilayer.com/apis/currency_data.png" width="50px"/></td>
@@ -41,7 +41,7 @@ Here is the complete list of the currently implemented services:
4141

4242
| Service | Base Currency | Quote Currency | Historical |
4343
|---------------------------------------------------------------------------|----------------------|----------------|----------------|
44-
| [Fixer](https://apilayer.com/marketplace/fixer-api) | EUR (free, no SSL), * (paid) | * | Yes |
44+
| [Fixer](https://fixer.io) | EUR (free, no SSL), * (paid) | * | Yes |
4545
| [Currency Data](https://apilayer.com/marketplace/currency_data-api) | USD (free), * (paid) | * | Yes |
4646
| [Exchange Rates Data](https://apilayer.com/marketplace/exchangerates_data-api) | USD (free), * (paid) | * | Yes |
4747
| [Abstract](https://www.abstractapi.com) | * | * | Yes |

doc/readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<table>
66
<tr>
77
<td><img src="https://assets.apilayer.com/apis/fixer.png" width="50px"/></td>
8-
<td><a href="https://apilayer.com/marketplace/fixer-api">Fixer</a> is a simple and lightweight API for foreign exchange rates that supports up to 170 world currencies.</td>
8+
<td><a href="https://fixer.io">Fixer</a> is a simple and lightweight API for foreign exchange rates that supports up to 170 world currencies.</td>
99
</tr>
1010
<tr>
1111
<td><img src="https://assets.apilayer.com/apis/currency_data.png" width="50px"/></td>
@@ -75,7 +75,7 @@ $options = [
7575
$client = new CurlClient(null, null, $options);
7676

7777
// Use the Fixer service
78-
$service = new Fixer($client, null, ['api_key' => 'Get your key here: https://apilayer.com/marketplace/fixer-api']);
78+
$service = new Fixer($client, null, ['api_key' => 'Get your key here: https://fixer.io']);
7979

8080
// Or use the CurrencyData service
8181
$service = new CurrencyData($client, null, ['api_key' => 'Get your key here: https://apilayer.com/marketplace/currency_data-api']);
@@ -149,7 +149,7 @@ use Exchanger\Service\ApiLayer\Fixer;
149149
use Exchanger\Service\AbstractApi;
150150

151151
$service = new Chain([
152-
new Fixer($client, null, ['api_key' => 'Get your key here: https://apilayer.com/marketplace/fixer-api']),
152+
new Fixer($client, null, ['api_key' => 'Get your key here: https://fixer.io']),
153153
new CurrencyData($client, null, ['api_key' => 'Get your key here: https://apilayer.com/marketplace/currency_data-api']),
154154
new ExchangeRatesData($client, null, ['api_key' => 'Get your key here: https://apilayer.com/marketplace/exchangerates_data-api']),
155155
new AbstractApi($client, null, ['api_key' => 'Get your key here: https://app.abstractapi.com/users/signup'])
@@ -420,7 +420,7 @@ use Exchanger\Service\ApiLayer\ExchangeRatesData;
420420
use Exchanger\Service\ApiLayer\Fixer;
421421

422422
$service = new Chain([
423-
new Fixer($client, null, ['api_key' => 'Get your key here: https://apilayer.com/marketplace/fixer-api']),
423+
new Fixer($client, null, ['api_key' => 'Get your key here: https://fixer.io']),
424424
new CurrencyData($client, null, ['api_key' => 'Get your key here: https://apilayer.com/marketplace/currency_data-api']),
425425
new ExchangeRatesData($client, null, ['api_key' => 'Get your key here: https://apilayer.com/marketplace/exchangerates_data-api']),
426426
new AbstractApi($client, null, ['api_key' => 'Get your key here: https://app.abstractapi.com/users/signup']),

src/Service/ApiLayer/Fixer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/**
2929
* ApiLayer Fixer Service.
3030
*
31-
* @see https://apilayer.com/marketplace/fixer-api
31+
* @see https://fixer.io
3232
*
3333
* @author Florian Voutzinos <[email protected]>
3434
*/
@@ -48,7 +48,7 @@ final class Fixer 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 Fixer (https://apilayer.com/marketplace/fixer-api).');
51+
throw new NonBreakingInvalidArgumentException('The "api_key" option must be provided to use Fixer (https://fixer.io).');
5252
}
5353
}
5454

tests/Tests/Service/ApiLayer/FixerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class FixerTest extends ServiceTestCase
3232
public function it_throws_an_exception_if_api_key_option_missing()
3333
{
3434
$this->expectException(NonBreakingInvalidArgumentException::class);
35-
$this->expectExceptionMessage('The "api_key" option must be provided to use Fixer (https://apilayer.com/marketplace/fixer-api).');
35+
$this->expectExceptionMessage('The "api_key" option must be provided to use Fixer (https://fixer.io).');
3636
new Fixer($this->createMock('Http\Client\HttpClient'));
3737
}
3838

0 commit comments

Comments
 (0)