This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66
77## [ Unreleased]
88
9- ## [ 2.0.0] - 2020-09-??
9+ ## [ 3.0.0] - 2021-07-??
10+ ####Major overhaul of the Library with some Breaking changes. Please read before updating!
11+ ### Added
12+ - Support for PHP 8
13+ - Support for cURL proxy
14+ ### Changed
15+ - Moved from travis-ci.org to travis-ci.com
16+ - Added specific curl_error to message in DeepLException
17+ - Fix some Tests that where too specific
18+ - standard api-host from api.deepl.com to api-free.deepl.com
19+ ### Removed
20+ - Support for PHP < 7.3
21+
22+ ## [ 2.0.1] - 2020-09-29
1023####Major overhaul of the Library with some Breaking changes. Please read before updating!
1124### Added
1225- Ability to change the API-Host
Original file line number Diff line number Diff line change 99
1010Simple PHP Library for DeepL API. You can translate one or multiple text strings (up to 50) per request.
1111
12- ๐ฉ๐ช๐ฌ๐ง๐บ๐ธ๐ช๐ธ๐ฒ๐ฝ๐ซ๐ท๐ฎ๐น๐ฏ๐ต๐ณ๐ฑ๐ต๐ฑ๐ต๐น๐ง๐ท๐ท๐บ๐จ๐ณ
12+ ๐ฉ๐ช๐ฆ๐น๐จ๐ญ ๐ฌ๐ง๐บ๐ธ๐ช๐ธ๐ฒ๐ฝ๐ซ๐ท๐ฎ๐น๐ฏ๐ต๐ณ๐ฑ๐ต๐ฑ๐ต๐น๐ง๐ท๐ท๐บ๐จ๐ณ๐ฌ๐ท๐ฉ๐ฐ๐จ๐ฟ๐ช๐ช๐ซ๐ฎ๐ญ๐บ๐ฑ๐น๐ฑ๐ป๐ท๐ด๐ท๐ธ๐ธ๐ฐ๐ธ๐ช
1313
1414[ Official DeepL API] [ link-deepl ]
1515
@@ -32,6 +32,12 @@ $authKey = '<AUTH KEY>';
3232$deepl = new DeepL($authKey);
3333```
3434
35+ Use the DeepL API Pro:
36+ ``` php
37+ $authKey = '<AUTH KEY >';
38+ $deepl = new DeepL($authKey,2,'api.deepl.com');
39+ ```
40+
3541### Translate
3642Translate one Text:
3743
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ class DeepL
8484 * @param integer $apiVersion
8585 * @param string $host
8686 */
87- public function __construct ($ authKey , $ apiVersion = 2 , $ host = 'api.deepl.com ' )
87+ public function __construct ($ authKey , $ apiVersion = 2 , $ host = 'api-free .deepl.com ' )
8888 {
8989 $ this ->authKey = $ authKey ;
9090 $ this ->apiVersion = $ apiVersion ;
You canโt perform that action at this time.
0 commit comments