Skip to content

Commit 09183c7

Browse files
committed
fix: docs
1 parent dc5ebf9 commit 09183c7

File tree

3 files changed

+7
-20
lines changed

3 files changed

+7
-20
lines changed

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
[![Build status](http://img.shields.io/travis/florianv/exchanger/master.svg?style=flat-square)](https://travis-ci.org/florianv/exchanger)
44
[![Total Downloads](https://img.shields.io/packagist/dt/florianv/exchanger.svg?style=flat-square)](https://packagist.org/packages/florianv/exchanger)
5-
[![Scrutinizer](https://img.shields.io/scrutinizer/g/florianv/exchanger.svg?style=flat-square)](https://scrutinizer-ci.com/g/florianv/exchanger)
65
[![Version](http://img.shields.io/packagist/v/florianv/exchanger.svg?style=flat-square)](https://packagist.org/packages/florianv/exchanger)
76

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

1312
## Sponsors
@@ -24,11 +23,7 @@ Looking for a simple library based on Exchanger ? Check out [Swap](https://githu
2423
<tr>
2524
<td><img src="https://assets.apilayer.com/apis/exchangerates_data.png" width="50px"/></td>
2625
<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>
27-
</tr>
28-
<tr>
29-
<td><img src="https://global-uploads.webflow.com/5ebbd0a566a3996636e55959/5ec2ba29feeeb05d69160e7b_webclip.png" width="50px"/></td>
30-
<td><a href="https://www.abstractapi.com/">Abstract</a> provides simple exchange rates for developers and a dozen of APIs covering thousands of use cases.</td>
31-
</tr>
26+
</tr>
3227
</table>
3328

3429
## Documentation

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
"php-http/discovery": "^1.6",
3232
"psr/http-factory": "^1.0.2",
3333
"php-http/client-implementation": "^1.0",
34-
"psr/simple-cache": "^1.0 || ^2.0 || ^3.0"
34+
"psr/simple-cache": "^1.0 || ^2.0 || ^3.0",
35+
"symfony/http-client": "^5.4",
36+
"php-http/message-factory": "^1.1"
3537
},
3638
"require-dev": {
3739
"phpunit/phpunit": "^7 || ^8 || ^9.4",

doc/readme.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@
1414
<tr>
1515
<td><img src="https://assets.apilayer.com/apis/exchangerates_data.png" width="50px"/></td>
1616
<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>
17-
</tr>
18-
<tr>
19-
<td><img src="https://global-uploads.webflow.com/5ebbd0a566a3996636e55959/5ec2ba29feeeb05d69160e7b_webclip.png" width="50px"/></td>
20-
<td><a href="https://www.abstractapi.com/">Abstract</a> provides simple exchange rates for developers and a dozen of APIs covering thousands of use cases.</td>
21-
</tr>
17+
</tr>
2218
</table>
2319

2420
## Index
@@ -65,7 +61,6 @@ use Http\Client\Curl\Client as CurlClient;
6561
use Exchanger\Service\ApiLayer\CurrencyData;
6662
use Exchanger\Service\ApiLayer\ExchangeRatesData;
6763
use Exchanger\Service\ApiLayer\Fixer;
68-
use Exchanger\Service\AbstractApi;
6964
use Exchanger\Exchanger;
7065

7166
// Create your http client (we choose curl here)
@@ -83,9 +78,6 @@ $service = new CurrencyData($client, null, ['api_key' => 'Get your key here: htt
8378
// Or use the ExchangeRatesData service
8479
$service = new ExchangeRatesData($client, null, ['api_key' => 'Get your key here: https://exchangeratesapi.io']);
8580

86-
// Or use the AbstractApi service
87-
$service = new AbstractApi($client, null, ['api_key' => 'Get your key here: https://app.abstractapi.com/users/signup']);
88-
8981
// Create Exchanger with your service
9082
$exchanger = new Exchanger($service);
9183
```
@@ -146,13 +138,11 @@ use Exchanger\Service\Chain;
146138
use Exchanger\Service\ApiLayer\CurrencyData;
147139
use Exchanger\Service\ApiLayer\ExchangeRatesData;
148140
use Exchanger\Service\ApiLayer\Fixer;
149-
use Exchanger\Service\AbstractApi;
150141

151142
$service = new Chain([
152143
new Fixer($client, null, ['api_key' => 'Get your key here: https://fixer.io']),
153144
new CurrencyData($client, null, ['api_key' => 'Get your key here: https://currencylayer.com']),
154145
new ExchangeRatesData($client, null, ['api_key' => 'Get your key here: https://exchangeratesapi.io']),
155-
new AbstractApi($client, null, ['api_key' => 'Get your key here: https://app.abstractapi.com/users/signup'])
156146
]);
157147
```
158148

0 commit comments

Comments
 (0)