diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bc4a73..eb7f6bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [2.0.0] - 2020-09-?? +## [3.0.0] - 2021-07-?? +####Major overhaul of the Library with some Breaking changes. Please read before updating! +### Added +- Support for PHP 8 +- Support for cURL proxy +### Changed +- Moved from travis-ci.org to travis-ci.com +- Added specific curl_error to message in DeepLException +- Fix some Tests that where too specific +- standard api-host from api.deepl.com to api-free.deepl.com +### Removed +- Support for PHP < 7.3 + +## [2.0.1] - 2020-09-29 ####Major overhaul of the Library with some Breaking changes. Please read before updating! ### Added - Ability to change the API-Host diff --git a/README.md b/README.md index 9da83eb..0460270 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Simple PHP Library for DeepL API. You can translate one or multiple text strings (up to 50) per request. -🇩🇪🇬🇧🇺🇸🇪🇸🇲🇽🇫🇷🇮🇹🇯🇵🇳🇱🇵🇱🇵🇹🇧🇷🇷🇺🇨🇳 +🇩🇪🇦🇹🇨🇭🇬🇧🇺🇸🇪🇸🇲🇽🇫🇷🇮🇹🇯🇵🇳🇱🇵🇱🇵🇹🇧🇷🇷🇺🇨🇳🇬🇷🇩🇰🇨🇿🇪🇪🇫🇮🇭🇺🇱🇹🇱🇻🇷🇴🇷🇸🇸🇰🇸🇪 [Official DeepL API][link-deepl] @@ -32,6 +32,12 @@ $authKey = ''; $deepl = new DeepL($authKey); ``` +Use the DeepL API Pro: +```php +$authKey = ''; +$deepl = new DeepL($authKey,2,'api.deepl.com'); +``` + ### Translate Translate one Text: diff --git a/src/DeepL.php b/src/DeepL.php index 2059b24..a646ef7 100644 --- a/src/DeepL.php +++ b/src/DeepL.php @@ -84,7 +84,7 @@ class DeepL * @param integer $apiVersion * @param string $host */ - public function __construct($authKey, $apiVersion = 2, $host = 'api.deepl.com') + public function __construct($authKey, $apiVersion = 2, $host = 'api-free.deepl.com') { $this->authKey = $authKey; $this->apiVersion = $apiVersion;