This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 3 files changed +22
-3
lines changed
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
6
6
7
7
## [ Unreleased]
8
8
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
10
23
####Major overhaul of the Library with some Breaking changes. Please read before updating!
11
24
### Added
12
25
- Ability to change the API-Host
Original file line number Diff line number Diff line change 9
9
10
10
Simple PHP Library for DeepL API. You can translate one or multiple text strings (up to 50) per request.
11
11
12
- ๐ฉ๐ช๐ฌ๐ง๐บ๐ธ๐ช๐ธ๐ฒ๐ฝ๐ซ๐ท๐ฎ๐น๐ฏ๐ต๐ณ๐ฑ๐ต๐ฑ๐ต๐น๐ง๐ท๐ท๐บ๐จ๐ณ
12
+ ๐ฉ๐ช๐ฆ๐น๐จ๐ญ ๐ฌ๐ง๐บ๐ธ๐ช๐ธ๐ฒ๐ฝ๐ซ๐ท๐ฎ๐น๐ฏ๐ต๐ณ๐ฑ๐ต๐ฑ๐ต๐น๐ง๐ท๐ท๐บ๐จ๐ณ๐ฌ๐ท๐ฉ๐ฐ๐จ๐ฟ๐ช๐ช๐ซ๐ฎ๐ญ๐บ๐ฑ๐น๐ฑ๐ป๐ท๐ด๐ท๐ธ๐ธ๐ฐ๐ธ๐ช
13
13
14
14
[ Official DeepL API] [ link-deepl ]
15
15
@@ -32,6 +32,12 @@ $authKey = '<AUTH KEY>';
32
32
$deepl = new DeepL($authKey);
33
33
```
34
34
35
+ Use the DeepL API Pro:
36
+ ``` php
37
+ $authKey = '<AUTH KEY >';
38
+ $deepl = new DeepL($authKey,2,'api.deepl.com');
39
+ ```
40
+
35
41
### Translate
36
42
Translate one Text:
37
43
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ class DeepL
84
84
* @param integer $apiVersion
85
85
* @param string $host
86
86
*/
87
- public function __construct ($ authKey , $ apiVersion = 2 , $ host = 'api.deepl.com ' )
87
+ public function __construct ($ authKey , $ apiVersion = 2 , $ host = 'api-free .deepl.com ' )
88
88
{
89
89
$ this ->authKey = $ authKey ;
90
90
$ this ->apiVersion = $ apiVersion ;
You canโt perform that action at this time.
0 commit comments