Releases: DeepLcom/deepl-php
Releases · DeepLcom/deepl-php
v1.11.1
v1.11.0
Added
- Added support for the Write API in the client library, the implementation
can be found in theDeepLClient
class. Please refer to the README for usage
instructions.
Changed
- The main functionality of the library is now also exposed via the
DeepLClient
class. Please change your code to use this over theTranslator
class whenever
convenient.
v1.10.1
Fixed
- Fixed the
TextResult
constructor to be compatible with pre-1.10 versions, to
facilitate mocking- Thanks to VincentLanglet for
#56
- Thanks to VincentLanglet for
- Fixed a bug when generating the platform information with
php_uname
.- Thanks to jochensengier for
#57 and
that-guy-iain +
jimwins for the
report.
- Thanks to jochensengier for
v1.10.0
Added
- Added
MODEL_TYPE
option totranslateText()
to use models with higher
translation quality (available for some language pairs), or better latency.
Options are'quality_optimized'
,'latency_optimized'
, and'prefer_quality_optimized'
- Added the
$modelTypeUsed
field totranslateText()
response, that
indicates the translation model used when theMODEL_TYPE
option is
specified.
v1.9.0
Added
- Added
$billedCharacters
to the translate text response.
v1.8.0
v1.7.2
Fixed
- Added a workaround for rare cases that the DeepL API responds with invalid UTF-8 sequences. In these cases the replacement character "�" (U+FFFD) will replace invalid sequences.
- Thanks to VincentLanglet for #43
v1.6.0
Added
- Add optional
context
parameter for text translation, that specifies
additional context to influence translations, that is not translated itself.
Changed
- Added notice in Readme that starting in 2024 the library will drop support for PHP versions that are officially end-of-life.
Version 1.5.1
Fixed
- Add
.gitattributes
file to exclude irrelevant files from package download.- Thanks to VincentLanglet for #30
- Internal CI improvements.
Version 1.5.0
Added
- Allow users to supply their own custom HTTP client to the
Translator
object, in order to configure timeouts, security features etc more granularly.- Thanks to VincentLanglet for the good input and work in #22
- Add curl version to the platform info in the user-agent header (will not be added if the user opts out).
Fixed
- Allow users to translate empty strings without throwing an error.
- Thanks to VincentLanglet for the work in #24
- Catch any exception thrown when computing the user-agent header and continue without failing the request.