{{ message }}
Releases: DeepLcom/deepl-php
Releases · DeepLcom/deepl-php
v1.19.0
Added
- Added support for the
/v3/languagesand/v3/languages/resourcesendpoints
in theDeepLClientclass:getLanguagesForResource()andgetLanguageResources().
These return richer per-resource, per-feature language support than the v2
language endpoint, including newer languages and features. - Added new model classes
LanguageSupport,LanguageResource,LanguageFeature,
andResourceFeatureto represent the v3 language response shape.
Changed
- Migrated request bodies for
/v2/translate,/v2/glossaries, and
/v2/write/rephrasetoapplication/jsonwith correctly-typed fields
(e.g.textis sent as an array,show_billed_charactersas a boolean,
tag lists as arrays,translation_memory_thresholdas an integer). - Send
typeas a query parameter onGET /v2/languagesinstead of in the
request body. - Enabled OpenAPI request and response validation for the mock-server CI jobs.
v1.18.0
Added
- Added support for translation memories in text translation via
TranslateTextOptions::TRANSLATION_MEMORY_IDand
TranslateTextOptions::TRANSLATION_MEMORY_THRESHOLD. - Added
listTranslationMemories()method to theDeepLClientclass for
listing available translation memories. - Added new model class
TranslationMemoryInfoto represent translation memory data.
Fixed
- Set explicit image for
gitlab releaseCI job to avoid missing$HOMEissues.
v1.17.0
Added
- Added new language constants from January 2026 API release of 81 new languages.
- Added PHP 8.4 and 8.5 to CI test matrix.
- Added support for style rules CRUD endpoints in the
DeepLClientclass:createStyleRule(),getStyleRule(),updateStyleRuleName(),updateStyleRuleConfiguredRules(), anddeleteStyleRule(). - Added support for style rule custom instruction CRUD endpoints in the
DeepLClientclass:createStyleRuleCustomInstruction(),
getStyleRuleCustomInstruction(),updateStyleRuleCustomInstruction(), anddeleteStyleRuleCustomInstruction().
Please refer to the README for usage instructions.
v1.16.0
Added
- Added
tag_handling_versionparameter totranslateText()specify which version of the tag handling algorithm to use. Options arev1andv2.
v1.15.0
Added
- Added
custom_instructionsparameter totranslateText()to customize translation behavior with up to 10 instructions (max 300 characters each). Only supported for target languages:de,en,es,fr,it,ja,ko,zhand their variants. Note: using thecustom_instructionsparameter will use thequality_optimizedmodel type as the default. Requests combiningcustom_instructionsand thelatency_optimizedmodel type will be rejected.
v1.14.0
- Added support for the
GET /v3/style_rulesendpoint in the client library, the implementation can be found in theDeepLClientclass. Please refer to the README for usage instructions - Added
style_idoption totranslateText()which allows text translation with style rules. - Added new model classes:
StyleRuleInfo,ConfiguredRules, andCustomInstructionto support style rules functionality.
v1.13.0
Added
- Added
extraRequestParametersoption to text and document translation methods to pass arbitrary parameters in the request body. This can be used to access beta features or override built-in parameters (such astarget_lang,source_lang, etc.).
v1.12.0
Added
- Added support for the /v3 Multilingual Glossary APIs in the client library while providing backwards compatability for the previous /v2 Glossary endpoints. Please refer to the README or upgrading_to_multilingual_glossaries.md for usage instructions.
v1.11.1
v1.11.0
Added
- Added support for the Write API in the client library, the implementation
can be found in theDeepLClientclass. 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 theTranslatorclass whenever
convenient.
