diff --git a/.travis.yml b/.travis.yml index 2cfaea5..21e645e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,28 @@ language: php -php: - - 5.5 - - 5.6 - - 7.0 - - 7.1 - - 7.2 - sudo: false +env: + global: + - PREFER="--prefer-dist" + +matrix: + fast_finish: true + include: + - php: 5.5 + env: PREFER="--prefer-lowest" + - php: 5.5 + - php: 5.6 + - php: 7.0 + - php: 7.1 + - php: 7.2 + cache: directories: - $HOME/.composer/cache before_script: - - travis_retry composer self-update - - travis_retry composer update --no-interaction --prefer-dist + - composer update --no-interaction $PREFER script: - composer test diff --git a/CHANGELOG.md b/CHANGELOG.md index d21bb6e..16cb934 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ -# CHANGELOG for 3.0 +# CHANGELOG for 3.x -This log contains the important changes for the 3.0 version. +This log contains the important changes for the 3.x versions. + +- Added CurrencyConverterApi service +- Fixed Fixer service which now requires an access_key +- Added Forge service +- Added CurrencyDataFeed service +- Supported historical rates in National Bank Of Romania +- Support crypto currencies via Cryptonator +- New Russian Central Bank service - e5234ea Added a .gitattributes file - 24ba8f3 Use Httplug instead of egeloen diff --git a/LICENSE b/LICENSE index 76187c7..09a4b69 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2014 - 2018 Florian Voutzinos +Copyright (c) 2014 - 2019 Florian Voutzinos Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 85cdb28..7bbdf75 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ Here is the list of the currently implemented services: | [1Forge](https://1forge.com) | * (free but limited or paid) | * (free but limited or paid) | No | | [European Central Bank](https://www.ecb.europa.eu/home/html/index.en.html) | EUR | * | Yes | | [National Bank of Romania](http://www.bnr.ro) | RON | * | Yes | -| [Central Bank of the Republic of Turkey](http://www.tcmb.gov.tr) | * | TRY | No | +| [Central Bank of the Republic of Turkey](http://www.tcmb.gov.tr) | * | TRY | Yes | | [Central Bank of the Czech Republic](https://www.cnb.cz) | * | CZK | Yes | | [Central Bank of Russia](https://cbr.ru) | * | RUB | Yes | | [WebserviceX](http://www.webservicex.net) | * | * | No | @@ -90,6 +90,7 @@ Here is the list of the currently implemented services: | [CurrencyDataFeed](https://currencydatafeed.com) | * (free but limited or paid) | * (free but limited or paid) | No | | [Open Exchange Rates](https://openexchangerates.org) | USD (free), * (paid) | * | Yes | | [Xignite](https://www.xignite.com) | * | * | Yes | +| [CurrencyConverterApi](https://www.currencyconverterapi.com) | * | * | Yes (free but limited or paid) | | Array | * | * | Yes | ## Integrations diff --git a/composer.json b/composer.json index db5211a..2306f8f 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ { "name": "Florian Voutzinos", "email": "florian@voutzinos.com", - "homepage": "http://florian.voutzinos.com" + "homepage": "https://voutzinos.com" } ], "autoload": { diff --git a/doc/readme.md b/doc/readme.md index 0048158..b2a1284 100644 --- a/doc/readme.md +++ b/doc/readme.md @@ -245,6 +245,7 @@ $swap = (new Builder()) ->add('google') ->add('cryptonator') ->add('currency_data_feed', ['api_key' => 'secret']) + ->add('currency_converter', ['access_key' => 'secret', 'enterprise' => false]) ->add('open_exchange_rates', ['app_id' => 'secret', 'enterprise' => false]) ->add('xignite', ['token' => 'token']) ->add('array', [ diff --git a/src/Service/Registry.php b/src/Service/Registry.php index bf036ef..1d43b02 100644 --- a/src/Service/Registry.php +++ b/src/Service/Registry.php @@ -14,6 +14,7 @@ use Exchanger\Service\CentralBankOfCzechRepublic; use Exchanger\Service\CentralBankOfRepublicTurkey; use Exchanger\Service\Cryptonator; +use Exchanger\Service\CurrencyConverterApi; use Exchanger\Service\CurrencyDataFeed; use Exchanger\Service\CurrencyLayer; use Exchanger\Service\EuropeanCentralBank; @@ -96,6 +97,7 @@ private function registerServices() 'array' => PhpArray::class, 'central_bank_of_czech_republic' => CentralBankOfCzechRepublic::class, 'central_bank_of_republic_turkey' => CentralBankOfRepublicTurkey::class, + 'currency_converter' => CurrencyConverterApi::class, 'currency_layer' => CurrencyLayer::class, 'currency_data_feed' => CurrencyDataFeed::class, 'cryptonator' => Cryptonator::class, diff --git a/tests/Service/RegistryTest.php b/tests/Service/RegistryTest.php index 5c04213..acb1c3d 100644 --- a/tests/Service/RegistryTest.php +++ b/tests/Service/RegistryTest.php @@ -14,6 +14,7 @@ use Exchanger\Service\CentralBankOfCzechRepublic; use Exchanger\Service\CentralBankOfRepublicTurkey; use Exchanger\Service\Cryptonator; +use Exchanger\Service\CurrencyConverterApi; use Exchanger\Service\CurrencyDataFeed; use Exchanger\Service\CurrencyLayer; use Exchanger\Service\EuropeanCentralBank; @@ -49,6 +50,7 @@ public function serviceProviders() ['central_bank_of_czech_republic', CentralBankOfCzechRepublic::class], ['central_bank_of_republic_turkey', CentralBankOfRepublicTurkey::class], ['cryptonator', Cryptonator::class], + ['currency_converter', CurrencyConverterApi::class], ['currency_data_feed', CurrencyDataFeed::class], ['currency_layer', CurrencyLayer::class], ['european_central_bank', EuropeanCentralBank::class],