diff --git a/README.md b/README.md index 2b60508..1e0af1d 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,8 @@ [![Version](http://img.shields.io/packagist/v/florianv/exchanger.svg?style=flat-square)](https://packagist.org/packages/florianv/exchanger) Exchanger is a PHP framework to work with currency exchange rates from various services such as -**[Fixer](https://fixer.io)**, **[currencylayer](https://currencylayer.com)** or **[exchangeratesapi](https://exchangeratesapi.io)**. +**[Fixer](https://fixer.io)**, **[currencylayer](https://currencylayer.com)**, +**[exchangeratesapi](https://exchangeratesapi.io)** or **[Abstract](https://www.abstractapi.com)**. Looking for a simple library based on Exchanger ? Check out [Swap](https://github.com/florianv/swap) ! ## Sponsors @@ -23,7 +24,11 @@ Looking for a simple library based on Exchanger ? Check out [Swap](https://githu exchangeratesapi provides reliable exchange rates and currency conversions for your business with over 15 data sources. - + + + + Abstract provides simple exchange rates for developers and a dozen of APIs covering thousands of use cases. + ## Documentation diff --git a/doc/readme.md b/doc/readme.md index 403c471..62a8a35 100644 --- a/doc/readme.md +++ b/doc/readme.md @@ -15,6 +15,10 @@ exchangeratesapi provides reliable exchange rates and currency conversions for your business with over 15 data sources. + + + Abstract provides simple exchange rates for developers and a dozen of APIs covering thousands of use cases. + ## Index @@ -61,6 +65,7 @@ use Http\Client\Curl\Client as CurlClient; use Exchanger\Service\Fixer; use Exchanger\Service\CurrencyLayer; use Exchanger\Service\ExchangeRatesApi; +use Exchanger\Service\AbstractApi; use Exchanger\Exchanger; // Create your http client (we choose curl here) @@ -75,6 +80,9 @@ $service = new CurrencyLayer($client, null, ['access_key' => 'access_key', 'ente // Or use the exchangeratesapi.io service $service = new ExchangeRatesApi($client, null, ['access_key' => 'access_key']); +// Or use the abstractapi.com service +$service = new AbstractApi($client, null, ['api_key' => 'api_key']); + // Create Exchanger with your service $exchanger = new Exchanger($service); ``` @@ -135,11 +143,13 @@ use Exchanger\Service\Chain; use Exchanger\Service\Fixer; use Exchanger\Service\CurrencyLayer; use Exchanger\Service\ExchangeRatesApi; +use Exchanger\Service\AbstractApi; $service = new Chain([ new Fixer($client, null, ['access_key' => 'YOUR_KEY']), new CurrencyLayer($client, null, ['access_key' => 'access_key', 'enterprise' => false]), new ExchangeRatesApi($client, null, ['access_key' => 'access_key']), + new AbstractApi($client, null, ['api_key' => 'api_key']) ]); ```