You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+34-17
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,20 @@
1
1
# deepl-php-lib
2
+
***
3
+
## Deprecated Library !
2
4
5
+
Hello everyone,
6
+
7
+
in the last couple of months we didn't give much attention to this projekt. DeepL on the other hand has developed client libraries for Python, .NET and Node.js (see: [API-Doc][link-deepl-client-libraries]).
8
+
9
+
Since there is a PHP-Library in the works [Github][link-deepl-php-lib-github] and our track record with maintaining our library hasn't been as good as it should have been, we decided to abandon this library and switch internally to the official one.
10
+
11
+
To make clear that we won't continue to work on this repository, we will archive it. If anyone from the community wants to continue our work we can put a line in the README to point to the new maintained repository.
12
+
13
+
Otherwise, we recommend you to check out the new library coming from [DeepL][link-deepl-php-lib-github].
14
+
15
+
Thank you to everyone who contributed to this project over the years.
16
+
17
+
***
3
18
[![Latest Version on Packagist][ico-version]][link-packagist]
4
19
[![Software License][ico-license]](LICENSE.md)
5
20
[![Build Status][ico-travis]][link-travis]
@@ -39,7 +54,7 @@ Use the DeepL API Pro:
39
54
use \BabyMarkt\DeepL\DeepL;
40
55
41
56
$authKey = '<AUTHKEY>';
42
-
$deepl = new DeepL($authKey,2,'api.deepl.com');
57
+
$deepl = new DeepL($authKey,2,'api-free.deepl.com');
43
58
```
44
59
45
60
### Translate
@@ -69,7 +84,7 @@ foreach ($translations as $translation) {
| $text | Text to be translated. Only UTF8-encoded plain text is supported. The parameter may be specified as an Array and translations are returned in the same order as they are requested. Each of the array values may contain multiple sentences. Up to 50 texts can be sent for translation in one request. |
72
-
| $sourceLang | Language of the text to be translated. <br>default: de|
87
+
| $sourceLang | Language of the text to be translated. <br>default: "" (DeepL will auto-detect)|
73
88
| $targetLang | The language into which the text should be translated. <br> default: en |
74
89
| $tagHandling | Sets which kind of tags should be handled. Options currently available: "xml" |
75
90
| $ignoreTags | Array of XML tags that indicate text not to be translated. <br> default: null |
| $glossaryId | Glossary uuid (set by DeepL when glossary is created)|
175
190
176
191
### Configuring cURL requests
177
192
If you need to use a proxy, you can configure the underlying curl client to use one. You can also specify a timeout to avoid waiting for several minutes if Deepl is unreachable
@@ -231,3 +246,5 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
0 commit comments